Skip to content
SQL injection Disclosed report Intermediate

Blind SQLi leading to RCE, from Unauthenticated access to a test API Webservice

An unauthenticated test API web service exposed a browsable WSDL interface with functions that returned user data and a blind SQL injection flaw. The attacker could use the SQL injection to access the database and execute operating system commands via the xp_cmdshell function, achieving remote code execution on a production server.

geek_jeremy Follow

Originally disclosed on HackerOne

Critical 9.3 View original
  • Paid in 15 days
  • Disclosed after 54 days

Summary by the program

@geek_jeremy, at the same time as other hackers who submitted their own reports, discovered a browsable WSDL service on an API endpoint under the starbucks.com.cn domain, running on a non-standard port. @geek_jeremy demonstrated that the service had several functions that executed without any authentication at all, allowing the listing of users, passwords and other personal information. Fortunately, this was a test service, executing on test data, and as a result, this alone did not constitute a vulnerability worth rewarding. @geek_jeremy also demonstrated that the service had at least one blind SQLi vulnerability, allowing him to not only access the database behind the service, but also to execute commands through the xp_cmdshell function. The "ping" command was used to demonstrate this safely without causing bad effects to the service. Because this was a Remote Code Execution (RCE) on a production server, even though it was reached through a test instance, this was awarded as a Critical vulnerability.

The original report as published on HackerOne, by geek_jeremy. 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 test API service lacked authentication and input sanitisation, and the database had the xp_cmdshell feature enabled, allowing command execution.

Impact

An attacker could read user data and execute arbitrary commands on a production server, though the service was a test instance.

What the attacker needed

Unauthenticated access to the test API

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 test web service was open to anyone. It had a blind SQL injection flaw, letting an attacker extract database information. The database also allowed system commands via xp_cmdshell, demonstrated safely with ping.

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.