Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.0.0
-
None
Description
FilterDispatcher (in 2.0) and DefaultStaticContentLoader (in 2.1) have a security vulnerability that allows an attacker to traverse the directory structure and download files outside the "static" content folder, using double-encoded urls and relative paths, like:
http://localhost:8080/struts2-blank-2.0.11.1/struts..
http://localhost:8080/struts2-blank-2.0.11.1/struts/..%252f
Not all container are vulnerable to this, but Struts code needs to be fixed to avoid serving static content outside the static folders.