[SECURITY] The JS template for buglists permits attackers to access all bugs that the victim can see
Originally disclosed on Mozilla
- Fixed in 5 days
- Paid in 19 months
- Disclosed after 5 days
Created attachment 614984
PoC against landfill-tip
Bug 195530 added a JavaScript template for buglists in Bugzilla 2.17.4. Despite it was written with security in mind (see the 2nd patch there), it's still possible to bypass this security check by forcing buglist.cgi to log in the user again after the check is done, see the PoC (no worry, it tries to access bugs on landfill). To make the PoC work, you must first be logged into https://landfill.bugzilla.org/bugzilla-tip/. The vulnerability exists since 2.17.4.
The best way to fix this bug is to remove this JS template. I'm pretty sure that nobody besides gerv and Jesse knows that this template exists (I found it by accident earlier today). Either that, or this code must be moved right before calling Search.pm:
if ((defined $cgi->param('ctype')) && ($cgi->param('ctype') eq "js")) {
Bugzilla->logout_request();
}
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 security bug in Query/Bug List. Mozilla made it public on 18 April 2012 as CVE-2012-0466.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.