Skip to content
Info disclosure Disclosed report Beginner

SQL Exception thrown during product import

When importing products from a CSV file, certain special characters caused a MySQL error message to be included in a notification email. An attacker could potentially learn database details from the error, though the program states the specific error was a timeout and contained no sensitive information.

pappan Follow

Originally disclosed on HackerOne

  • Fixed in 34 days
  • Disclosed after 34 days

Summary by the program

The researcher reported an issue where in certain cases product imports would send notification emails with full MySQL error messages. In this case, the error reported was caused by a timeout unrelated to the file uploaded by the researcher and didn't contain any sensitive information. The issue has been fixed and notification emails no longer show full MySQL error messages.

The report

Possible SQL Injection was observed when a descriptive error message was thrown in a mail sent to the user while importing products from csv. Used some special characters in csv to induce the error.

DATABASE FOUND TO BE MYSQL.

sqlerror.png
sqlerror.png From the original on HackerOne

The original report as published on HackerOne, by pappan. 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 did not suppress detailed database error messages when sending import failure notifications.

Impact

The error message could reveal database details, but the program states the specific error was a timeout and contained no sensitive information.

What the attacker needed

Ability to import product CSV files

The fix

The issue was fixed and notification emails no longer show full MySQL error messages.

How it was found

  1. Import a product CSV file containing special characters.
  2. Trigger a database error during the import.
  3. Receive a notification email that includes the full MySQL error message.

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 CSV file is a simple spreadsheet format used to import data. The researcher found that by putting unusual characters in the file, the system sent back an email containing a database error message. Such messages can sometimes reveal how the database is built, which helps an attacker plan further attacks.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by pappan

View all

4 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.