View Issue Details

IDProjectCategoryView StatusLast Update
0012630mantisbtsecuritypublic2011-04-05 14:23
Reporterdhx Assigned Todhx  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.4 
Target Version1.2.5Fixed in Version1.2.5 
Summary0012630: print_bugnote_inc.php XSS with reminders sent to users with malformed usernames
Description

A minor XSS issue exists with print_bugnote_inc.php whereby usernames are not properly sanitised prior to being outputted.

Steps to reproduce:

  1. Create a user with a username of "Hack<script>alert(1)</script>" (note: MantisBT will not let people create these malformed usernames by default as only latin characters are accepted, therefore you must create the user with SQL or another raw approach).
  2. Send a reminder to this new user from inside a bug.
  3. Go to the print view of the bug.
  4. Notice an alert window pop up indicating an XSS issue.

NOTE: This is not a major security issue because MantisBT prevents people from making malformed usernames by default. It's only an issue if you're adding users to MantisBT using your own approach (a third party user creation script) and writing directly to the database instead of using MantisBT's API.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master eb38db49

2010-12-24 23:29

dhx


Details Diff
Fix 0012630: print_bugnote_inc.php XSS with unescaped reminder usernames

A minor XSS issue exists with print_bugnote_inc.php whereby usernames
are not properly sanitised prior to being outputted.

Steps to reproduce:
1. Create a user with a username of "Hack<script>alert(1)</script>"
(note: MantisBT will not let people create these malformed usernames by
default as only latin characters are accepted, therefore you must create
the user with SQL or another raw approach).
2. Send a reminder to this new user from inside a bug.
3. Go to the print view of the bug.
4. Notice an alert window pop up indicating an XSS issue.

NOTE: This is not a major security issue because MantisBT prevents
people from making malformed usernames by default. It's only an issue if
you're adding users to MantisBT using your own approach (a third party
user creation script) and writing directly to the database instead of
using MantisBT's API.
Affected Issues
0012630
mod - print_bugnote_inc.php Diff File

MantisBT: master-1.2.x 92a3e685

2010-12-24 23:29

dhx


Details Diff
Fix 0012630: print_bugnote_inc.php XSS with unescaped reminder usernames

A minor XSS issue exists with print_bugnote_inc.php whereby usernames
are not properly sanitised prior to being outputted.

Steps to reproduce:
1. Create a user with a username of "Hack<script>alert(1)</script>"
(note: MantisBT will not let people create these malformed usernames by
default as only latin characters are accepted, therefore you must create
the user with SQL or another raw approach).
2. Send a reminder to this new user from inside a bug.
3. Go to the print view of the bug.
4. Notice an alert window pop up indicating an XSS issue.

NOTE: This is not a major security issue because MantisBT prevents
people from making malformed usernames by default. It's only an issue if
you're adding users to MantisBT using your own approach (a third party
user creation script) and writing directly to the database instead of
using MantisBT's API.
Affected Issues
0012630
mod - print_bugnote_inc.php Diff File