Directory Traversal / Local File Inclusion on addons.mozilla.org
Originally disclosed on Mozilla
- Fixed in 1 hour
- Paid in 2.8 years
- Disclosed after 1 hour
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
Build Identifier:
app/controllers/pages_controller.php in the CakePHP code for AMO is vulnerable to a local file inclusion vulnerability. It takes user input via the query string to determine which template should be loaded. By injecting URL-encoded slashes and a URL-encoded null byte, it is possible to use arbitrary files on the filesystem as templates, echoing their content to the page. My proof of concept loads the /etc/passwd file for the AMO server.
Reproducible: Always
Steps to Reproduce:
1. Go to https://addons.mozilla.org/en-US/firefox/pages/..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc/passwd%2500
2. See the contents of /etc/passwd
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A path traversal bug in Public Pages. Mozilla made it public on 25 January 2011.
About Path traversal
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.