Enum is the key — Automatizado + Manual = Full shell.
A SQL injection vulnerability was found in a web parameter, which allowed extraction of admin credentials. After logging into the admin panel, a file upload restriction was bypassed to upload a PHP shell, leading to remote code execution and full shell access.
Published on aleeeeex264.medium.com
Hola, soy Alex aka 0x4lex. Este es mi primer post contando la historia para obtener una shell root.
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 web application failed to properly sanitise user input in a SQL query and later failed to validate file uploads beyond the content-type header.
Impact
An attacker could obtain admin credentials, upload a web shell, and achieve remote code execution, leading to full server compromise.
What the attacker needed
Access to the web application; no special privileges needed
How it was found
- Enumerate subdomains and ports using automated tools.
- Use xray to scan for vulnerabilities and identify a SQL injection parameter.
- Exploit the SQL injection with Ghauri to dump admin credentials.
- Find the admin panel path with a directory fuzzer and log in.
- Upload a PHP shell by changing the content-type to image/png.
- Use the shell to read /etc/shadow and /etc/passwd, crack passwords, and access via SSH.
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.
The attacker found a way to sneak database commands into a website's input field (SQL injection), which let them steal the admin password. After logging in, they uploaded a malicious file disguised as an image to run commands on the server, giving them full control.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.