Closed Bug 312933 Opened 20 years ago Closed 20 years ago

Query.cgi leaks product names

Categories

(Bugzilla :: Bugzilla-General, defect, P1)

2.21
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: bugreport, Assigned: bugreport)

Details

Attachments

(1 file, 1 obsolete file)

Classification.pm populates query.cgi's bug form with a list of products even when they are not selectable.
This is seen in 2.21 but I believe it is in 2.20 as well.
This does not exist on 2.20. Only on 2.21
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.22
Version: 2.20 → 2.21
Attached patch fix v1 (obsolete) — Splinter Review
This restricts the products listed to those the user is permitted to select. It also fixes the inconsistent ordering of the products.
Attachment #200052 - Flags: review?
Comment on attachment 200052 [details] [diff] [review] fix v1 Classification.pm is user-independent.
Attachment #200052 - Flags: review? → review-
Classification.pm is user-independent. Moreover, in query.cgi, line 299, I can read: if (Param('useclassification')) { $vars->{'classification'} = $user->get_selectable_classifications; } User::get_selectable_classifications only returns classifications you can see. So I see no issue here. If there is one, then it's in this method in User.pm, not in Classification.pm.
Group: webtools-security
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Target Milestone: Bugzilla 2.22 → ---
Group: webtools-security
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: Clasisifcation.pm returns product list to search form without checking selectability → Query.cgi leaks product names
Since this does not effect a release version, we can drop the security flag.... this leaks through the template.... template/en/default/search/form.html.tmpl [% FOREACH c = classification %] prods[[% nclass FILTER js %]] = [ [%- FOREACH item = c.products %]'[% item.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; [% nclass = nclass+1 %] [% END %] which blindly polulates the structures used by the javascript code
Group: webtools-security
Target Milestone: --- → Bugzilla 2.22
Assignee: general → bugreport
Attachment #200052 - Attachment is obsolete: true
Status: REOPENED → ASSIGNED
Attachment #200073 - Flags: review?(LpSolit)
Comment on attachment 200073 [details] [diff] [review] keep the change to the template r=LpSolit
Attachment #200073 - Flags: review?(LpSolit) → review+
Flags: approval?
Flags: approval? → approval+
Checking in template/en/default/search/form.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/search/form.html.tmpl,v <-- form.html.tmpl new revision: 1.34; previous revision: 1.33 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: