PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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);