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.
- 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
- 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.
- 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



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
- Append an Oracle-style character concatenation expression to the URL and observe an error page.
- Append a MySQL-style character expression to the URL and observe no error.
- Append a Microsoft SQL Server-style character expression to the URL and observe no error.
- 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.