port scanning possible security vulnerability
Originally disclosed on Mozilla
- Fixed in 21 days
- Paid in 16 months
- Disclosed after 21 days
Hi Team,
The page at https://marketplace.mozilla.org/en-US/developers/submit/app/manifest offers the ability for users to provide the URL for an App's manifest on the Internet. A POST request is made to https://marketplace.mozilla.org/en-US/developers/upload-manifest using the POST variable "manifest".
An attacker can port scan a server using this functionality by providing port numbers as part of the URL and using the unique responses recieved for closed and open ports as a signature.
For example, I am using scanme.nmap.org for this POC. It is known that the ports 22 and 80 are open on scanme.nmap.org.
1. Test for Closed port:
Provide input as "http://scanme.nmap.org:2243" and click validate.
The response is always "[Errno 101] Network is unreachable" for any closed port.
2. Test for Open NON HTTP Ports (like SSH, FTP, SMTP etc)
Provide input as "http://scanme.nmap.org:22" and click validate.
The response will contain the string "Your manifest must be served with the HTTP header "Content-Type: application/x-web-app-manifest+json"."
3. Test for Open HTTP Ports
Provide input as "http://scanme.nmap.org:80" and click validate.
The response will contain the string "Your manifest must be served with the HTTP header "Content-Type: application/x-web-app-manifest+json". We saw "text/html".".
Based on these unique error messages, one can identify the status of ports on remote servers. Please see the attached screenshots for the unique errors.
I have found similar issues on other popular web applications on the Internet as well and am in the process of writing a paper on port scanning remote servers using popular web applications. I will be including this as an example in the paper which I will be presenting at an upcoming security conference. Please provide me with an update when there is a change in bug status. I have filed a bug on bugzilla.mozilla.org, https://bugzilla.mozilla.org/show_bug.cgi?id=767066.
Also, does this qualify for a bug bounty? Please let me know if you would require any other information.
Regards,
Riyaz Walikar
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 security bug in Security. Mozilla made it public on 12 July 2012.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.