Closed Bug 983857 Opened 12 years ago Closed 3 years ago

Risky .lnk file download/upload handling.

Categories

(Firefox :: File Handling, defect)

All
Windows 7
defect

Tracking

()

RESOLVED DUPLICATE of bug 1773894

People

(Reporter: albinowax, Unassigned)

Details

(Keywords: sec-low)

Attachments

(1 file)

1.15 KB, application/octet-stream
Details
Attached file calc.lnk
If a user downloads a .lnk file (a windows shortcut), and then attempts to upload the same file, whatever the shortcut points to will be uploaded instead. Given a suitably cooperative user, this could be exploited to read a file from their computer. I've attached a poc, which will steal calc.exe if you're kind enough to download and upload it. I think this is a fairly plausible attack, although I'd give it low/medium risk due to the heavy user interaction required. I don't think most users would expect there to be any security risks associated with uploading a file they've downloaded. I'd appreciate feedback on whether you view this as a security issue. Chrome avoids the problem by converting the .lnk extension to .download
I would rate this as a low for two reasons" 1) Other than well known file names on systems the attacker would have to know the full name and file path to a particular file 2) (your reason) The attacker would have to convince the user to download the file then re-upload the same file. It's likely that any user who would fall for this would upload just about any file you asked.
Component: Security → File Handling
Product: Toolkit → Core
Keywords: sec-low
Group: core-security → dom-core-security
Group: dom-core-security → firefox-core-security
Product: Core → Firefox
Version: unspecified → Trunk
Severity: normal → S3

Can you make this report public? Thanks.

Group: firefox-core-security

Neil, I think this got fixed in bug 1773894, right?

Flags: needinfo?(enndeakin)

Looks to be the same.

Status: NEW → RESOLVED
Closed: 3 years ago
Duplicate of bug: CVE-2022-36314
Flags: needinfo?(enndeakin)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: