Skip to content
Info disclosure Disclosed report Intermediate

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.

tunnelshade Follow

Originally disclosed on HackerOne

Bounty$300 View original
  • 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

daemon-log.png
daemon-log.png From the original on HackerOne

The original report as published on HackerOne, by tunnelshade. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Log in as a normal user.
  2. Wait for a momentary disruption of mail services.
  3. Request a password reset link for the admin mail address.
  4. Read the password reset link from the daemon logs.
  5. 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.

More by tunnelshade

View all

4 more disclosed reports, best first.

More from Phabricator

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.