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.
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
- https://maildev.happytools.dev
- https:// api.happytools.dev
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:
- https://api.happytools.dev/wp-login.php?action=lostpassword and forgot password for user
api - 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) - 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


████████
Impact
Takeover wordpress site api.happytools.dev
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
- Request a password reset for the WordPress user named api on the staging site.
- Open the exposed webmail interface to read the reset email and set a new password.
- 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.