Skip to content

Commit ed08552

Browse files
committed
Fix reflected XSS with symbol parameter #50
Fix reflected XSS with symbol parameter #50
1 parent 2b14d1a commit ed08552

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

extension/php_xhprof.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern zend_module_entry xhprof_module_entry;
3939
*/
4040

4141
/* XHProf version */
42-
#define XHPROF_VERSION "2.2.2-dev"
42+
#define XHPROF_VERSION "2.2.3"
4343

4444
#define XHPROF_FUNC_HASH_COUNTERS_SIZE 1024
4545

xhprof_lib/utils/xhprof_lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,10 @@ function xhprof_param_init($params) {
909909
$p = implode(',', array_filter(explode(',', $p), 'ctype_xdigit'));
910910
}
911911

912+
if ($k == 'symbol') {
913+
$p = strip_tags($p);
914+
}
915+
912916
// create a global variable using the parameter name.
913917
$GLOBALS[$k] = $p;
914918
}

0 commit comments

Comments
 (0)