Closed Bug 400234 Opened 19 years ago Closed 19 years ago

Firefox 2.0.0.7 ParseFTPList Remote Denial of Service Vulnerability

Categories

(Firefox :: Security, defect)

2.0 Branch
x86
Windows Vista
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 388424

People

(Reporter: michal.bucko, Unassigned)

Details

(Whiteboard: [sg:dupe 388424])

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506) Build Identifier: 2.0.0.7 Firefox 2.0.0.7 is prone to remote denial of service vulnerability. This can be achieved via enticing the unaware victim to open a specially crafted ftp server. While listing files (ParseFTPList.cpp), reading from invalid pointer occurs that results in denial of service conditions. 004C848E |. 8985 5CFFFFFF |MOV DWORD PTR SS:[EBP-A4],EAX 004C8494 |. 8B00 |MOV EAX,DWORD PTR DS:[EAX] 004C8496 |. 0FBE00 |MOVSX EAX,BYTE PTR DS:[EAX]; here is the crash In ParseFTPList.cpp 'pos' is not properly sanitized, thus an out of bounds array access (on line 1039; 'pos' can be greater than the number of indices in the 'tokens' array). The exploitation of the vulnerability has been proven using a FTP server and a specially crafted file. Firefox failed to handle the FTP list parsing. From iDefense: "[..]In this loop the 'tokens' array is iterated over. The 'pos' variable is used to index into it. The 'pos' variable is then updated at another loop on line 1084. In this loop 'pos' can be set to be greater than the number of indices in the 'tokens' array. 'pos' is not sanitized when the outer loop iterates again, and an out of bounds array access occurs on line 1039. This results in a crash when reading from an invalid pointer.[..]" Reproducible: Always Steps to Reproduce: 1. Build a specially crafted file. 2. Open url: ftp://somemaliciousserver
Michal, I think this is a duplicate of a bug that will be fixed in Firefox 2.0.0.8 (bug 388424). Can you please confirm that this bug is fixed in Firefox 2.0.0.8 RC2 before I dupe it? ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2.0.0.8-candidates/rc2/
Curious, I don't see any public advisories from iDefense on this topic. Is this from some subscriber-only notice? Did you just receive this today? Wonder if they're trying to reverse-engineer the security flaws we've fixed from the patches? If so and this is the only one they figured out we're doing pretty good. Of course when we ship tomorrow we'll open up all the bugs and they can save themselves some work.
This is not a public advisory from iDefense. I talked to them in private. (In reply to comment #2) > Curious, I don't see any public advisories from iDefense on this topic. Is this > from some subscriber-only notice? Did you just receive this today? > > Wonder if they're trying to reverse-engineer the security flaws we've fixed > from the patches? If so and this is the only one they figured out we're doing > pretty good. Of course when we ship tomorrow we'll open up all the bugs and > they can save themselves some work. >
It is not iDefense who found the vulnerability. I have reported the vulnerability and talked to one of their representatives about it. (In reply to comment #2) > Curious, I don't see any public advisories from iDefense on this topic. Is this > from some subscriber-only notice? Did you just receive this today? > > Wonder if they're trying to reverse-engineer the security flaws we've fixed > from the patches? If so and this is the only one they figured out we're doing > pretty good. Of course when we ship tomorrow we'll open up all the bugs and > they can save themselves some work. >
Or if you can give us a link to your malicious FTP server we can verify it if that's easier.
The file responsible for the issue is here: http://sapheal.hack.pl/ff2007exploit/ In order to trigger a crash, please put it somewhere on a FTP server for Windows and use Firefox to open the URI (ftp://...).
Samuel, The problem has been fixed in 2.0.0.8.
Ok, thanks for verifying, Michal. As Samuel already wanted to do in comment 1, I'm duping this against bug 388424.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Version: unspecified → 2.0 Branch
Does this bug need to remain hidden?
Status: RESOLVED → VERIFIED
Whiteboard: [sg:dupe 388424]
No, it doesn't.
Ok, unhiding it, then.
Group: security
You need to log in before you can comment on or make changes to this bug.