SQL Injection in 2026? Yes. And It Took One Apostrophe.
A company identifier parameter was inserted directly into a database query, so a single apostrophe caused a detailed SQL error. The author then used an automated tool to list databases and tables and to dump data, and found the same flaw in two other endpoints.
medium.com
Published on medium.com
Today I wanted to share a simple yet interesting finding something everyone knows about, but somehow not everyone and definitely not every time manages to spot. Funny how that works.
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 user input from the companyID parameter was concatenated directly into a SQL query instead of using parameterised queries, and database errors were shown to the user.
Impact
An attacker could read data from the database, and the author states this amounted to complete compromise; the same flaw was also present in two other endpoints.
What the attacker needed
Access to the application as a user; ability to send crafted requests
The fix
The application should use parameterised queries, validate input, and stop showing detailed SQL errors to users.
How it was found
- Browse the application as a normal user and find the endpoint that deletes company modules.
- Notice the companyID parameter in the request.
- Intercept the request and send it to the repeater tool.
- Change the companyID value to include an apostrophe.
- Observe the detailed SQL error returned by the server.
- Save the request to a file, mark the injection point, and use an automated tool to list databases, list tables and dump data.
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 database query is a command the website sends to its database, for example to look up a company. Here the website glued the user's input straight into that command instead of keeping it separate. Adding a quote character broke the command and the site showed the database's error, which told the tester the input was being treated as part of the command.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.