Skip to content
Disclosed report CVE-2014-1545

OOB write with sprintf and console functions

Abhishek Arya Follow

Originally disclosed on Mozilla

Critical View original
  • Fixed in 4 days
  • Paid in 8 months
  • Disclosed after 4 days

Repro:: a. <script>console.warn("%301f", "1");</script> b. <script>console.warn("%65416.123f", "a");</script>

Code:: (fout is char fout[300];) sprintf(fout, fin, d);

/*
** This assert will catch overflow's of fout, when building with
** debugging on. At least this way we can track down the evil piece
** of calling code and fix it!
*/
PR_ASSERT(strlen(fout) < sizeof(fout));

The original report as published on Mozilla's Bugzilla, by Abhishek Arya. 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 critical-severity security bug in NSPR. Mozilla made it public on 5 June 2014 as CVE-2014-1545.

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

More by Abhishek Arya

View all

130 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.