Closed Bug 152688 Opened 23 years ago Closed 19 years ago

doctor error message does not escape input

Categories

(Webtools Graveyard :: Doctor, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: reed)

References

()

Details

(Whiteboard: security)

Attachments

(1 file)

http://doctor.mozilla.org/doctor.cgi?action=edit&file=<script>alert(5)</script> Result: two dialogs and confused text. Expected: no dialogs and text like "Cannot find file <script>alert(5)</script>". This is bad because a page could link to a URL similar to the one above and then read the user's CVS password from password manager. People being able to steal bugzilla passwords is bad, but people being able to steal CVS passwords is very bad. Please check Doctor for other similar bugs.
Checking in doctor.cgi; /cvsroot/mozilla/webtools/doctor/doctor.cgi,v <-- doctor.cgi new revision: 1.10; previous revision: 1.9 done RCS file: /cvsroot/mozilla/webtools/doctor/templates/cvs-error.tmpl,v done Checking in templates/cvs-error.tmpl; /cvsroot/mozilla/webtools/doctor/templates/cvs-error.tmpl,v <-- cvs-error.tmpl initial revision: 1.1 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Group: security? → webtools-security?
Whiteboard: security
Group: webtools-security
QA Contact: asa → doctor
Has this regressed? Or was it only fixed for the edit action? http://sla.ckers.org/forum/read.php?3,44,2090,page=21#msg-2092
Group: webtools-security
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Group: webtools-security
Seems the "FILTER html" part on the message variable got lost two months after it was originally fixed. This patch adds it back.
Assignee: myk → reed
Status: REOPENED → ASSIGNED
Attachment #243292 - Flags: review?(dveditz)
Comment on attachment 243292 [details] [diff] [review] Always filter HTML from message - v1 This is obviously correct. r=mkanat by inspection (and noticing that the URL in comment 0 does indeed provide an XSS hole).
Attachment #243292 - Flags: review?(dveditz) → review+
Checking in code-error.tmpl; /cvsroot/mozilla/webtools/doctor/templates/code-error.tmpl,v <-- code-error.tmpl new revision: 1.4; previous revision: 1.3 done Checking in user-error.tmpl; /cvsroot/mozilla/webtools/doctor/templates/user-error.tmpl,v <-- user-error.tmpl new revision: 1.4; previous revision: 1.3 done I will request that the production Doctor instance be upgraded to latest CVS.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago19 years ago
Resolution: --- → FIXED
(In reply to comment #5) > I will request that the production Doctor instance be upgraded to latest CVS. Done.
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: