Closed Bug 1229894 Opened 10 years ago Closed 10 years ago

Backport bug upstream 1221518 to bmo/4.2 [SECURITY] XSS in dependency graphs when displaying the bug summary

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1221518 +++ During the generation of a dependency graph also the code for the html image map is generated if a local dot installation is used. With html escaped characters in a bug summary it is possible to inject custom lines in the *.map file with which the CreateImagemap function generates html code without filtering. poc: - configure bugzilla to use a local dot installation to generate a dependency graph - create a bug with the following summary: &#10;default "><script>alert(1)</script> G - visit /showdependencygraph.cgi?id=<BUG-ID>&showsummary=on&display=tree&rankdir=TB, a javascript alert prompt will show up
Attached patch 1229894_1.patchSplinter Review
Straight backport of the 4.2 patch on bug 1221518 fixes the issue
Attachment #8694885 - Flags: review?(dylan)
Comment on attachment 8694885 [details] [diff] [review] 1229894_1.patch Review of attachment 8694885 [details] [diff] [review]: ----------------------------------------------------------------- r=dylan
Attachment #8694885 - Flags: review?(dylan) → review+
hot patched in bugzillaadm:/data/bugzilla/www/bugzilla.mozilla.org, deployed to web heads, and httpd restarted. note: any regular BMO push will overwrite that.
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git 8a1506c..8f50123 master -> master
Group: webtools-security
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: