Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bbc6b4f

Browse files
committedJan 18, 2013
Fix #15373: match_type XSS vulnerability
Jakub Galczyk discovered[1] a cross site scripting (XSS) vulnerability in MantisBT 1.2.12 and earlier versions that allows a malicious person to trick the browser of a target user into executing arbitrary JavaScript via the URL: search.php?match_type="><script... This vulnerability is particularly wide reaching due to search.php being usable by anonymous users on public facing installations of MantisBT (no user account required). The value of the "match_type" filter parameter is now correctly sanitised prior to use in the HTML output displaying the current filter settings. [1] http://hauntit.blogspot.de/2013/01/en-mantis-bug-tracker-1212-persistent.html
1 parent 75dd763 commit bbc6b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/filter_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3400,7 +3400,7 @@ function <?php echo $t_js_toggle_func;?>() {
34003400
echo lang_get ('filter_match_all');
34013401
}
34023402
?>
3403-
<input type="hidden" name="match_type" value="<?php echo $t_filter[FILTER_PROPERTY_MATCH_TYPE]?>"/>
3403+
<input type="hidden" name="match_type" value="<?php echo string_attribute( $t_filter[FILTER_PROPERTY_MATCH_TYPE] )?>"/>
34043404
</td>
34053405
<td colspan="6">&#160;</td>
34063406
</tr>

0 commit comments

Comments
 (0)
Please sign in to comment.