If you have url rewriting enabled and your site has a XSS vulnerability then the site can he hacked by reading url in Javascript and sending sessions to remote servers.
To disable this if you are on tomcat7 the fix is simple
add this to your web.xml
<session-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
Also you should mark your sessionId cookie secure and httpOnly.
To disable this if you are on tomcat7 the fix is simple
add this to your web.xml
<session-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
Also you should mark your sessionId cookie secure and httpOnly.
Comments
Post a Comment