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)
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
Comment 1•19 years ago
|
||
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/
Comment 2•19 years ago
|
||
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.
| Reporter | ||
Comment 3•19 years ago
|
||
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.
>
| Reporter | ||
Comment 4•19 years ago
|
||
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.
>
Comment 5•19 years ago
|
||
Here is the change in Firefox 2.0.0.8rc2
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/netwerk/streamconv/converters&command=DIFF_FRAMESET&file=ParseFTPList.cpp&rev1=FIREFOX_2_0_0_7_RELEASE&rev2=FIREFOX_2_0_0_8_RC2&root=/cvsroot
Is that the same bug? Does the 2.0.0.8rc2 build fix the problem?
Comment 6•19 years ago
|
||
Or if you can give us a link to your malicious FTP server we can verify it if that's easier.
| Reporter | ||
Comment 7•19 years ago
|
||
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://...).
| Reporter | ||
Comment 8•19 years ago
|
||
Samuel,
The problem has been fixed in 2.0.0.8.
Comment 9•19 years ago
|
||
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
Comment 10•19 years ago
|
||
Does this bug need to remain hidden?
Status: RESOLVED → VERIFIED
Whiteboard: [sg:dupe 388424]
| Reporter | ||
Comment 11•19 years ago
|
||
No, it doesn't.
You need to log in
before you can comment on or make changes to this bug.
Description
•