Skip to content

Commit

Permalink
xss: AJAX Paths
Browse files Browse the repository at this point in the history
This mitigates a vulnerability reported by indevi0us where XSS is
possible via some AJAX paths.
  • Loading branch information
JediKev committed Mar 8, 2023
1 parent 619ce0f commit 343a2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/class.osticket.php
Expand Up @@ -366,10 +366,10 @@ function get_db_input($index, $vars, $quote=true) {

static function get_path_info() {
if(isset($_SERVER['PATH_INFO']))
return $_SERVER['PATH_INFO'];
return htmlentities($_SERVER['PATH_INFO']);

if(isset($_SERVER['ORIG_PATH_INFO']))
return $_SERVER['ORIG_PATH_INFO'];
return htmlentities($_SERVER['ORIG_PATH_INFO']);

//TODO: conruct possible path info.

Expand Down

0 comments on commit 343a2b4

Please sign in to comment.