Mr. Robot Blind SQL Injection Vulnerability
The email subscription endpoint was vulnerable to blind SQL injection, which the author confirmed by observing that a true condition returned a forbidden response while a false condition returned an invalid email message. An attacker could use this to extract data from the backend database.
corenumb.wordpress.com
Published on corenumb.wordpress.com
So the other day I saw this article http://thehackernews.com/2016/05/hacker-mr-robot-season2.htmlon TheHackerNews and in Forbes how a hacker found a XSS vulnerability on Mr Robot Tv series official website. since I’m a big fan of the TV Series I went and look around bit . I wasn’t expecting to find any vulnerabilities…
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 email value was concatenated directly into a SQL query without parameterisation, so injected SQL changed the query's logic.
Impact
The author could extract information from the database through the blind injection, though a WAF sat in front of the application.
What the attacker needed
Access to the public sign-up form; none
The fix
The vulnerability was fixed by the vendor after the author reported it.
How it was found
- Submit an email address containing a single quote and observe the response.
- Submit an email with a true SQL condition and note the forbidden response.
- Submit an email with a false SQL condition and note the invalid email response.
- Run SQLMap against the endpoint, telling it to treat the forbidden code as the true signal.
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.
When you type an email into a sign-up form, the site usually checks it against a database. Here the site built its database query in a way that let the author sneak in extra database instructions through the email field. Because the page only showed two different messages depending on whether the sneaked-in question was true or false, the author could ask the database yes/no questions and slowly learn its contents.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.