vendor:
Gmail
by:
Natashaenka
7.5
CVSS
HIGH
Directory Traversal
22
CWE
Product Name: Gmail
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested:
Directory Traversal in Gmail Attachment Downloads
There is a directory traversal issue in attachment downloads in Gmail. For non-gmail accounts, there is no path sanitization on the attachment filename in the email, so when attachments are downloaded, a file with any name and any contents can be written to anywhere on the filesystem that the Gmail app can access. This bug has limitations such as the email address has to be a non-Gmail and non Gmailified (Hotmail or Yahoo) account, the file cannot overwrite an existing file, and the user has to click to download the attachment.
Mitigation:
The issue can be mitigated by implementing proper path sanitization on attachment filenames in non-Gmail accounts.