Skip to content
SQL injection Disclosed report Intermediate

Blind SQL Injection

A blind SQL injection was reported in a share-count update endpoint, where the count parameter was placed into a database query without proper handling. An attacker could use time-based queries to infer data from the database, though the affected host was outside the program scope.

linkks Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 31 hours
  • Fixed in 2 days
  • Paid in 2 days
  • Disclosed after 2 days

Summary by the program

@linkks reported a blind sql injection:

POST /api/updateShareCount HTTP/1.1 Host: insideok.ru Cache-Control: no-cache Accept: application/json, text/javascript, /; q=0.01 Origin: http://insideok.ru Referer: http://insideok.ru/lica User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0 X-Requested-With: XMLHttpRequest Accept-Language: en-us,en;q=0.5 Cookie: session=27e8i3jqiutlk7bd2nmgoftbg0 Accept-Encoding: gzip, deflate Content-Length: 108 Content-Type: application/x-www-form-urlencoded; charset=UTF-8

type=sharesCountTw&url=http%3a%2f%2finsideok.ru%2flica&count=-1+or+1%3d((SELECT+1+FROM+(SELECT+SLEEP(25))A))

insideok.ru is corporate blog and out of the program scope. There was no risk for the main domain and users' data.

The original report as published on HackerOne, by linkks. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the count parameter was concatenated into a SQL query without parameterisation or validation.

Impact

An attacker could use time-based queries to extract information from the database, but the affected host was outside the program scope and the program states there was no risk to the main domain or users' data.

What the attacker needed

Access to the share-count endpoint

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 report has not been written yet. The Original tab links to the source.

A blind SQL injection is when an attacker slips database instructions into a form field or request parameter, and the application runs them. 'Blind' means the attacker cannot see the query results directly, so they ask the database to pause for a set time and watch whether the response is slow to confirm their guess. Here the count value in a share-count request was used in a database query without being made safe.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by linkks

View all

20 more disclosed reports, best first.

More from ok.ru

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.