Chaining Path Traversal Vulnerability to RCE — Meta’s 111,750$ Bug
The Messenger for Windows client failed to sanitise attachment filenames in end-to-end encrypted chats, allowing path traversal to write files outside the intended directory. By writing a malicious DLL into Viber's application folder, an attacker could achieve remote code execution when the victim launched Viber.
Free Link : here
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could achieve remote code execution on the victim's Windows machine without further user interaction, though the exploit relied on the presence of Viber and its DLL loading behaviour.
What the attacker needed
Victim uses Messenger for Windows; Victim has Viber installed; Attacker can send encrypted chat message
The fix
The client should rigorously sanitise and validate all filenames received from external sources, especially in end-to-end encrypted systems.
How it was found
- Send an attachment with a filename containing path traversal sequences in an encrypted chat.
- The client saves the file outside the intended directory due to the traversal.
- Craft the filename to place a malicious DLL into Viber's application folder.
- When the victim launches Viber, it loads the malicious DLL, executing attacker code.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you send a file in a chat, the app saves it to a folder on your computer. The app didn't check the file's name properly, so someone could give it a name that made it save the file somewhere else on your computer. They used this to put a harmful file where another program (Viber) would load it, and when you opened Viber, their code ran.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.