November 2017
Intermediate to advanced
542 pages
14h 24m
English
Let's assume that we want to support a custom web expression named isLocal that will return true if the host is localhost and false otherwise. This new method could be used to provide additional security for our SQL console by ensuring that it is only accessed from the same machine that the web application is deployed from.
This is an artificial example that does not add any security benefits since the host comes from the headers of the HTTP request. This means a malicious user could inject a header stating the host is localhost even if they are requesting to an external domain.
All of the expressions that we have seen are available because the SecurityExpressionHandler interface makes them available ...
Read now
Unlock full access