PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » Pager » Bug #2131

PEAR::Pager allows XSS attack

Details

Request #2131PEAR::Pager allows XSS attack
Submitted2004-08-16 09:32 UTC
Fromsou_sk at nifty dot com
Assignedquipo
StatusClosed
PackagePager
PHP Version4.3.8
OSWindows
Roadmaps(Not assigned)

Comments

[2004-08-16 09:32 UTC] sou_sk at nifty dot com

Description:
------------
Pager has security problem. Malicious user can cause XSS problem through URL queries like this:
http://example.com/pager/example.php?"><s>oooops</s>

I checked this problem with bundled example.php on CVS latest version (Common.php,v 1.16).

Adding code bellow prevent this problem.
Common.php line:649
$qs = array_map('htmlspecialchars',$qs);