Closed Bug 345355 (CVE-2006-2087) Opened 19 years ago Closed 19 years ago

Thunderbird allows attackers to cause a DoS via an attachment with an MS-DOS device filename

Categories

(MailNews Core :: Attachments, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: kohei, Assigned: mscott)

References

()

Details

(Keywords: hang, Whiteboard: [sg:dos])

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 Build Identifier: N/A JPCERT/CC team recently informed us at Mozilla Japan about this vulnerability. The bug was originally found in a specific email client last September. JPCERT team has examined details and confirmed that it affected other clients including Thunderbird. They'd like to know the status of bug fix in Thunderbird. I confirmed guru dveditz the bug has not been filed. CVE-2006-2087 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2087 USCERT/CC VU#146542 (not published yet) Reproducible: Always
Keywords: hang
related? bug 29079
I'll ask JPCERT team to send the details.
having an attachment with any of the following names may exploit this issue: AUX.txt COM1.txt LPT1.txt NUL.txt PRN.txt
Assignee: nobody → mscott
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.8.0.6+
Flags: blocking-thunderbird2?
Whiteboard: [sg:low dos]
They sent us their test result of Thunderbird (see below), but used version was 1.0.6. I'll test with the nightly. CON.txt Saved file is renamed to "CON-1.txt". AUX.txt, LPT1.txt, NUL.txt and PRN.txt Saving attachment cannot be completed, but you can cansel the process. CLOCK$.txt, CONOUT$.txt and CONIN$.txt To be displayed in notepad as a plain text file.
JPCERT team also noted the test has been conducted by IPA, Information-technology Promotion Agency, Japan, and there was no program stoppage. (Ouch!) They'd like to know if Mozilla recognize the bug as a vulnerability.
> They'd like to know if Mozilla recognize the bug as a vulnerability. We recognize this as a Denial-of-Service vulnerability, which is a low severity on non-server products.
Flags: blocking1.8.0.8+
Flags: blocking1.8.0.7-
Flags: blocking1.8.0.7+
Restoring lost blocking flag
Flags: blocking1.8.0.8?
Scott, David: any ETA for this? I wonder if the browser would have the same problem, if you saved a link target whose name was one of these files? If so maybe the fix is in nsLocalFileWin.cpp returning an error, or saying a file with that name already exists....
Flags: blocking1.8.0.8? → blocking1.8.0.9?
Flags: blocking1.8.0.9? → blocking1.8.0.9+
Flags: blocking1.8.0.9+ → wanted1.8.0.x+
We still want this one.
Alias: CVE-2006-2087
Flags: blocking1.8.1.2+
Flags: blocking1.8.0.10+
Flags: wanted1.8.0.x+
Putting on the list so I don't lose track of this bug.
Flags: blocking-thunderbird2? → blocking-thunderbird2+
Scott: I'm assuming this is still on your list, but updating flags since we want this for TB2. If we get a fix for that, we can fix it on a future 1.8.0.x release.
Flags: blocking1.8.0.10+ → wanted1.8.0.x+
Flags: blocking1.8.1.2+ → wanted1.8.1.x+
I tried this with an attachment named aux.txt - it failed to save, and we reported the error to the user (unable to save attachment - please check file name and try again). Granted, we don't tell them it's a reserved name...but I don't really see this as a DOS. It's impossible to create a file named aux.txt on Windows in general. When I try to save a file from Dev Studio 8 called aux.txt, it just fails silently. Am I missing the DOS part of this somehow?
I should say my tests were done with TB 2.0 beta 2.
Just tried Tbird 1.5.0.10pre and WFM as David described in comment 12. I can't remember what I was seeing before. I just retested 1.5.0.4, too, with the same results. The error is obvious, doesn't hang anything, and the user can always pick a new name and try again. I also tried opening the attachments in an external app rather than saving (so I didn't get a chance to pick a new name) and those quickly failed as well. No hangs. In 1.0.7 the behavior was different. You still get the "AUX.txt already exists, would you like to replace it?", and then it goes to the "Saving" screen where nothing ever happens. The Save has already failed, but we don't know that I guess. It's trivial to give up and cancel though -- if the progress meter isn't moving when saving to a local file it's pretty obvious something is wrong. So this is fixed somewhere on the way to 1.5 -- I'm very sorry I tested the wrong one.
Status: NEW → RESOLVED
Closed: 19 years ago
Flags: wanted1.8.1.x+
Flags: wanted1.8.0.x+
Flags: blocking-thunderbird2+
Resolution: --- → WORKSFORME
Group: security
Product: Core → MailNews Core
Whiteboard: [sg:low dos] → [sg:dos]
You need to log in before you can comment on or make changes to this bug.