OOB write with sprintf and console functions
Originally disclosed on Mozilla
- 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));
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.