Skip to content
SQL injection Disclosed report

SQL injection vulnerability in contact page @ intlstore.mozilla.org

Damon Haidary Follow

Originally disclosed on Mozilla

  • Fixed in 9 days
  • Paid in 2.9 years
  • Disclosed after 9 days
Text
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)
Build Identifier: 

Due to insufficient escaping of user account data, it's possible to inject an SQL payload in an address field and have it injected when submitting the contact form.

Reproducible: Always

Steps to Reproduce:
1.Create an account at intlstore.mozilla.org and log in.
2.Go to /address_book.php and either add a new address or edit an existing one.
3.In the "Company" field enter a string that includes a single quote (ex. foo') and save changes.
4.Go to /contact_us.php and click the forms send button to see the SQL insert error.



A dump of what is returned to the browser in my test. Note the unescaped quote after "foo". -

ERROR IN SQL INSERT INTO customer_enquiries (customers_id, title, customers_name, company, address_1, address_2, town, state, postcode, country, customers_email_address, customers_telephone, ipaddress, date_made, last_updated, store_id) VALUES ('65300','Please Choose - Order Number: ','John Doe', 'foo'', '1234 Main St.', '', 'calistoga', '', '94515', '223', '[address removed]', '7775551212','1262310938','2010-12-20 23:39:12','2010-12-20 23:39:12','4')

The original report as published on Mozilla's Bugzilla, by Damon Haidary. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A SQL injection bug in intlstore.mozilla.org. Mozilla made it public on 29 December 2010.

About SQL injection

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 Mozilla

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.