Describe the bug
The view events, insecurely displays the limit parameter value, without applying any proper output filtration leading to XSS. This issue exists because of function sortHeader() in functions.php which insecurely returns the value of limit query string parameter without applying any filtration.
Describe Your Environment
Describe the bug
The view
events, insecurely displays thelimitparameter value, without applying any proper output filtration leading to XSS. This issue exists because of functionsortHeader()infunctions.phpwhich insecurely returns the value oflimitquery string parameter without applying any filtration.To Reproduce
Affected URL :
http://localhost/zm/index.php?view=events&filter[Query][terms][0][attr]=Archived&filter[Query][terms][0][op]==&filter[Query][terms][0][val]=0&filter[Query][terms][1][cnj]=-3439)OR1=1-&filter[Query][terms][1][attr]=DiskPercent&filter[Query][terms][1][op]=>=&filter[Query][terms][1][val]=95&sort_field=Id&sort_asc=2&limit="><img src=x onerror-prompt('1');>&page=2
Payload used -
"><img src=x onerror-prompt('1');>Expected behavior
Debug Logs
The text was updated successfully, but these errors were encountered: