Abusing daemon logs for Privilege escalation under certain scenarios
When mail delivery was interrupted, the application wrote the admin password reset link into daemon logs. A normal user who could read those logs could use the link to take over the admin account.
Originally disclosed on HackerOne
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 4 days
Setup Needed
- A normal user account
- A momentary disruption of mail services
Replication steps
- Login as normal user
- Wait for momentary disruption of mail services
- Use Password Reset Link for admin mail address
- BOOM!!!
- You can see the password reset link in the daemon logs because of interrupted mail service (check the screenshot)
- Click on the link and upgrade to Admin
Attack Scenarios
(Virtually unlimited) A moment misconfiguration of
- Mail configuration
- Firewall settings
- Mail Service down
etc.. etc.. (we just need a moment :P)
I actually discovered this bug when gmail rejected my smtp credentials to prevent suspicious login :P.
Attachments

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
A normal user could take over the admin account, but only if mail delivery was briefly disrupted and the user could read the daemon logs.
What the attacker needed
A normal user account; brief mail service disruption; read access to daemon logs
How it was found
- Log in as a normal user.
- Wait for a momentary disruption of mail services.
- Request a password reset link for the admin mail address.
- Read the password reset link from the daemon logs.
- Open the link and gain admin access.
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 report has not been written yet. The Original tab links to the source.
A password reset link is a special web address that lets someone set a new password. Here, when the email could not be sent, the system saved that special address in a log file that ordinary users could read. Anyone who saw it could open it and become the admin.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.