Skip to content
SQL injection Disclosed report Intermediate

Solr Injection in `user_id` parameter at :/v2/leaderboard_v2.json

A Solr injection was found in the user_id parameter of a leaderboard endpoint, but it only allowed changing the filter query, not exfiltrating data. While investigating, the team discovered a critical boolean-based blind SQL injection in another parameter of the same codebase.

zzzhacker13 Follow

Originally disclosed on HackerOne

Bounty$2,000 Critical 9.1 View original
  • Triaged in under an hour
  • Fixed in 18 hours
  • Paid in 5 hours
  • Disclosed after 4 days

Summary by the program

@zzzhacker13 identified a Solr Injection on the user_id parameter at :/v2/leaderboard_v2.json. Our team analyzed internally and found that only fq={injection} was possible on the Solr endpoint, hence the Solr injection was of low impact since there was no way to escalate it to exfiltrate data, one could have just changed the filter query but it wasn't possible to update the fields or anything with these methods.

After the report from @zzzhacker13, the team started analyzing the endpoint and discovered an SQLi (boolean based blind SQLi) on another parameter in the same codebase. We went ahead and fixed the issue. The SQL injection, however, was critical as per our internal metrics, hence we considered this to be critical because it was discovered as an indirect effect of this report and rewarded the max bounty as per our policies.

Action Timeline (6 Aug, 2020)
Reported 18:18 IST
Investigation started 18:23 IST
Report validated 18:30 IST
Initial contact 18:56 IST
SQLi identified (internally) 19:08 IST
Triaged 19:12 IST
Patch PR released and merged 19:40 IST
Patch deployed 22:00 IST
Severity updated 22:51 IST
Rewarded 23:12 IST

Thanks, Zomato Security Team

The original report as published on HackerOne, by zzzhacker13. 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, user input was concatenated into a Solr query without sanitisation, and another parameter was similarly vulnerable to SQL injection.

Impact

The Solr injection had low impact because it only allowed changing the filter query, but the internally discovered SQL injection was critical.

What the attacker needed

Access to the leaderboard endpoint

The fix

The issues were fixed and a patch was deployed.

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.

The user_id parameter was passed to Solr without proper filtering, letting an attacker alter the query. However, this only changed the filter and did not let them read data. Separately, the team found a more serious SQL injection in another parameter.

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 zzzhacker13

View all

4 more disclosed reports, best first.

More from Eternal

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.