Issue Details (XML | Word | Printable)

Key: LUTECE-1134
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: ILE
Reporter: Nicolas Gregoire
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Lutèce

AdminDocumentation.jsp permits contributors and admins to read XML files outside of the webroot

Created: 03/Feb/10 02:28 PM   Updated: 08/Feb/10 09:32 AM
Component/s: core
Affects Version/s: 2.3.3
Fix Version/s: 2.4.0

Time Tracking:
Not Specified

Environment:  The issue isn't specific to any OS or software platform


 Description  « Hide

AdminDocumentation.jsp is used to display some documentation to admins and contributors.
A normal URL is similar to /jsp/admin/documentation/AdminDocumentation.jsp?doc=admin-site

However, the value of the "doc" paramter is used as is (without any sanity checks) to create the "strXmlPath" variable which is then used as the path to an XML file. Because of a later call to XmlUtil.transform(), only valid XML files can be read. The trailing ".xml" can be subverted by adding a NULL byte (%00) :

/jsp/admin/documentation/AdminDocumentation.jsp?doc=/../../../../something/conf/xml_config.txt%00

Impact is large mainly when Lutece is deployed on some shared/hosted servers where Lutece contributors haven't sysadmins privileges.



There are no comments yet on this issue.