Pentest tale - Dumping cleartext credentials from antivirus
During an internal pentest, the tester found that ESET antivirus stored SMTP credentials encrypted in its configuration, but the running process held them in cleartext memory. By dumping the process memory and searching for a known string, the tester recovered the cleartext credentials, which could be used to send email as that user.
exandroid.dev
Published on exandroid.dev
On one of my past pentests, I was engaged to perform an internal penetration test of the network with an assumed breach scenario. I have had access to the machine as a regular employee would.
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 antivirus process kept the SMTP password in cleartext in memory because it needed it to authenticate, and the configuration export only encrypted it at rest.
Impact
The tester could only send email as the compromised user, not gain domain admin access.
What the attacker needed
Internal network access; regular employee account; read-only antivirus settings; ability to dump process memory
How it was found
- Trigger the antivirus to send an alert email.
- Open the antivirus settings and view email notification configuration.
- Try exporting the configuration and observe the password is encrypted.
- Use Task Manager to find the antivirus process and dump its memory.
- Search the memory dump for the string 'SMTP_' to find cleartext credentials.
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.
Antivirus software often sends email alerts when it detects something. To do that, it needs a username and password for an email server. The report shows that even though the password looked encrypted in the settings, it was sitting in plain text inside the antivirus program's memory, so anyone who could read that memory could steal it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.