Skip to content
SQL injection Disclosed report Beginner

SQL Injection Proof of Concept for Starbucks URL

The reporter claims that by appending Oracle-style character concatenation expressions to a URL, an error page appears, while MySQL and Microsoft SQL Server equivalents do not, leading them to conclude the site uses an Oracle database. No actual data extraction or further exploitation is demonstrated.

gbadebo Follow

Originally disclosed on HackerOne

  • Disclosed after 7 months

browser: firefox quantum 60.0.1 64 bit os: windows 10 sqli type: char formula injection info found: oracle database system url: https://www.starbucks.de/coffee/our-coffees/format/whole-bean injected url using oracle concatenation and char functions: https://www.starbucks.de/coffee/our-coffees/format/whole-bean CHR(111) || CHR(114) || CHR(100) || CHR(101) || CHR(114) || CHR(32) || CHR(98) || CHR(121) || CHR(32) || CHR(49) steps to find oracle dbms

  1. inject the following url with order by 1 written with char and oracle concatenation resulting in an erronous page, which indicates oracle db is used.
  2. https://www.starbucks.de/coffee/our-coffees/format/whole-bean CHR(111) || CHR(114) || CHR(100) || CHR(101) || CHR(114) || CHR(32) || CHR(98) || CHR(121) || CHR(32) || CHR(49)

3.then inject the following url with mysql char using order by 1, which results in no error. so is not mysql dbms. 4. https://www.starbucks.de/coffee/our-coffees/format/whole-beanCHAR(111, 114, 100, 101, 114, 32, 98, 121, 32, 49) 5. finally try and inject with microsoft sql server char injection using order by 1 in char concatenation. which results in no error. so is not a microsoft sql server database.
6. https://www.starbucks.de/coffee/our-coffees/format/whole-bean CHAR(111) + CHAR(114) + CHAR(100) + CHAR(101) + CHAR(114) + CHAR(32) + CHAR(98) + CHAR(121) + CHAR(32) + CHAR(49)

description: by process of elimination by error. i was able to figure out which database starbucks is using for that url. basically, the only sql injection code that errored was the oracle char concatenation. leading me to believe that you use oracle dbms.

images included attached showing error with oracle sql injection and no error with ms sql nor mysql injection,

Impact

by knowning that the database is oracle this can lead to furthder exploits to gain priviledged information as it is no longer a blind sql exploit. which is a lot easier to deploy. the attacker can now streamline the sql injection to be specifically based on oracle sql syntax.

Attachments

starbucksMSSQLNoError.PNG
starbucksMSSQLNoError.PNG From the original on HackerOne
starbucksMySQLNoError.PNG
starbucksMySQLNoError.PNG
starbucksOracleError.PNG
starbucksOracleError.PNG

The original report as published on HackerOne, by gbadebo. 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 application passes user-supplied URL input into a database query without proper parameterisation, causing database-specific syntax errors to surface.

Impact

The reporter claims that knowing the database is Oracle could make further SQL injection easier, but no actual data access or privilege escalation is demonstrated.

What the attacker needed

None

How it was found

  1. Append an Oracle-style character concatenation expression to the URL and observe an error page.
  2. Append a MySQL-style character expression to the URL and observe no error.
  3. Append a Microsoft SQL Server-style character expression to the URL and observe no error.
  4. Conclude from the differing error behaviour that the backend is Oracle.

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 reporter added special database instructions to a web address and saw that one kind caused an error page while others did not. They guessed from this that the site uses a particular database product. They did not show that any private data could actually be read.

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 from Starbucks

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.