**Log Analysis -Compromised WordPress — BTLO, WriteUp**
A WordPress site was compromised after an attacker exploited a vulnerable plugin to upload a PHP web shell. The attacker used tools like sqlmap and wpscan, and the web shell was later accessed, returning a 404 response.
Published on systemweakness.com
One of our WordPress sites has been compromised but we’re currently unsure how. The primary hypothesis is that an installed plugin was vulnerable to a remote code execution vulnerability which gave an attacker access to the underlying operating system of the server.
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 a vulnerable version of the Simple File List plugin allowed arbitrary file upload, leading to remote code execution.
Impact
The attacker could execute arbitrary code on the server, potentially leading to full compromise.
What the attacker needed
Vulnerable Simple File List plugin; WordPress site with plugin installed
How it was found
- Identify the admin login panel URI from the logs.
- Find tools used by the attacker by filtering User-Agent fields.
- Research the CVE for the Contact Form 7 plugin.
- Grep the plugins directory to find the exploited plugin.
- Search for PHP files in the uploads directory to find the web shell.
- Check the last access to the web shell for the HTTP response code.
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.
A WordPress plugin had a security hole that let an attacker run their own code on the server. The attacker uploaded a small program (a web shell) that allowed them to control the site remotely. This write-up shows how to find clues in the server's log files to understand what happened.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.