Skip to content
Account takeover Disclosed report Beginner

Unauthenticated access to webmail at maildev.happytools.dev leading to compromised wordpress site api.happytools.dev [RCE]

An unauthenticated webmail interface for a staging environment was reachable, and it appeared to receive password reset emails for a WordPress administrator account on another staging host. By reading the reset link, an attacker could set a new password and take over the WordPress site, potentially uploading malicious plugins or themes.

superman85 Follow

Originally disclosed on HackerOne

  • Fixed in 40 hours
  • Paid in 40 hours
  • Disclosed after 35 days

Summary:

Dear Team,

Today when I trying to find bugs on happy tools I have found 2 domains below for staging environment

Two websites above ssl certificate was expired. But you can adjust your date-time to 02/02/2020 or before that time to access those sites normally

Platform(s) Affected:

https:// api.happytools.dev

Steps To Reproduce:

  1. https://api.happytools.dev/wp-login.php?action=lostpassword and forgot password for user api
  2. Go to https://maildev.happytools.dev to get reset password link and set new password for user api (I did not try to do that)
  3. After changing password for user api, we can control wordpress cms and may upload plugins/themes contain backdoor or harmful scripts to this server

Supporting Material/References:

Some screen shots PoC

forgot_pass_1.png
forgot_pass_1.png From the original on HackerOne
forgot_pass_2.png
forgot_pass_2.png

████████

Impact

Takeover wordpress site api.happytools.dev

The original report as published on HackerOne, by superman85. 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

An attacker could take over the staging WordPress site and potentially run harmful code on the server; the reporter did not actually complete the password change, so the takeover is claimed rather than demonstrated.

What the attacker needed

Exposed webmail reachable; expired TLS certificate bypassed by clock change; known admin username

How it was found

  1. Request a password reset for the WordPress user named api on the staging site.
  2. Open the exposed webmail interface to read the reset email and set a new password.
  3. Use the new credentials to access the WordPress admin and upload a malicious plugin or theme.

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 staging server is a test copy of a website that is often left online with weaker protection. Here, a mail-testing tool that anyone could open was receiving the password reset emails for the WordPress admin account. If someone can read those emails, they can reset the admin password and control the site.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by superman85

View all

6 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.