SQL INJECTION LEADING TO DDOS ATTACK IN PRIVATE CONQUER SERVER WE
The admin login page was vulnerable to SQL injection, allowing the author to bypass authentication and reach the admin dashboard. From there, image path and title fields rendered unsanitised input, enabling stored cross-site scripting that could replace the site's home page with an attacker-controlled iframe.
Published on waleedosamaeg.medium.com
before anything i wana to say that this vulnarability is so easy to be found , but i wrote this writeup to help people and encourage them for discovering vulns and create there own methodology depending on their mindset, now let’s enjoy the writeup …
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 login query concatenated user input directly into SQL, and the admin panel later rendered stored image paths and titles into HTML without encoding.
Impact
An attacker could log in as an administrator, read every game account with plain-text passwords, and inject stored script that replaces the home page with an attacker-controlled full-screen iframe for visitors.
What the attacker needed
Reachable admin login page; admin panel accepts image paths and titles
How it was found
- Open the admin login page and enter a single quote in the username field to trigger a database error.
- Use an order-by technique to count the columns in the admin accounts table.
- Send a union select query to pull rows from the accounts table.
- Try values from 1 to 20 in the password field until the login succeeds.
- Add a store item whose image path breaks out of the image tag and injects a script.
- Add a post title containing an iframe pointing at an attacker page.
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 login form that builds database queries by pasting in what you type can be tricked: typing special characters changes the query itself, so the site may let you in without a real password. Separately, if a site shows text or links you supplied without cleaning them, an attacker can make the page run their own code for every visitor.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.