How I was able to delete a production backend server in my first finding.
An outdated phpMyAdmin setup page was vulnerable to a cross-site request forgery that let an attacker make a logged-in administrator delete a server entry. The author could not confirm the deletion because they had no admin session, so the impact is only what the CVE describes.
Hello folks, in this article I will tell you about my journey of finding a CSRF and using that to delete a backend php server in my first triaged finding
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 phpMyAdmin setup page accepted state-changing requests without a valid anti-CSRF token, and the installed version was old and unpatched.
Impact
A logged-in phpMyAdmin administrator who visited the attacker's page could have a server entry removed from the setup list; the author could not confirm actual deletion because they had no admin session and only saw a 401 response.
What the attacker needed
Victim is a logged-in phpMyAdmin admin; victim visits attacker page; outdated phpMyAdmin 4.6.6
The fix
The report was closed as informative because the domain was said not to be owned by the program, so no fix is described; the underlying issue should be fixed by upgrading phpMyAdmin and enforcing anti-CSRF tokens on setup actions.
How it was found
- Find a subdomain that shows a server control panel page.
- Fuzz for common admin paths and reach a phpMyAdmin login page.
- Read the page source and note the phpMyAdmin version.
- Try the known remote code execution flaw, which only timed out.
- Load a page that sends the server-removal request and observe the response.
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.
Cross-site request forgery (CSRF) is when a malicious page makes your browser send a request to another site where you are already logged in, so the site thinks the request came from you. Here the request told phpMyAdmin, a database admin tool, to remove a server from its setup list. The author never had an admin login, so they only saw that the request was accepted, not that a server was actually deleted.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.