How I Found Sql Injection In 2 Day
The author found a login page and tested for SQL injection by entering a single quote in the username, which caused a 500 error, and then a quote followed by a comment sequence, which returned 200. The text does not demonstrate any actual data extraction or bypass, only error-based behaviour.
Published on systemweakness.com
On the first day I started doing this program. I focus on normal web browsing, there are a lot of interesting things but nothing to report.
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
Impact
The text only shows different HTTP status codes and does not prove that an attacker could log in, extract data, or otherwise exploit the injection.
What the attacker needed
Internet access; a web browser
How it was found
- Use a Google dork to find an ASP login page.
- Remove the lost-password part of the URL to reach the login page.
- Enter a username containing a single quote and a dummy password, and observe a 500 response.
- Enter a username containing a quote and a comment sequence, and observe a 200 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.
SQL injection is when user input is inserted into a database query without proper handling, so special characters can change the query's meaning. Here, a single quote in the username made the site return a server error, which hints the input reached the database unsafely. The author did not show any stolen data or successful login, so the impact is unproven.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.