Exploiting CVE-2019–3652 | Owning a networked software repository to PWN endpoints.
A shared network folder containing software installers had read/write access for everyone, allowing an attacker to replace a legitimate executable with a malicious one. When a technician ran the infected installer, the attacker gained a remote shell on the endpoint.
medium.com
Published on medium.com
{{media:0}}
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
Root cause
Likely the shared software repository allowed write access to all users, enabling tampering with executables.
Impact
An attacker could gain remote shells on endpoints when users executed the infected installer, though success depended on a user running the file and took a day or two.
What the attacker needed
Network access to the shared folder; write permission on the shared folder; victim executes the infected installer
The fix
The vendor patched the vulnerability and the issue was remediated; additionally, administrators should restrict write access to shared software repositories.
How it was found
- Find a network share containing software installers with write access for everyone.
- Generate shellcode using Cobalt Strike.
- Inject the shellcode into a legitimate executable using Shellter.
- Replace the original executable on the share with the infected one.
- Set up a listener and wait for a user to execute the infected installer.
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.
A shared folder on the network let anyone change the files inside it. The attacker swapped a legitimate installer for one that secretly ran malicious code, so when someone installed it, the attacker got control of that computer.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.