Re: This code using _GET exploitable

From: Date: Wed, 11 Mar 2009 12:52:27 +0000
Subject: Re: This code using _GET exploitable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-289844@lists.php.net to get a copy of this message
filtered wrote:
Hi, we have script containing <? echo $_GET['studio'] ?>
http://www.yourwebsite.org/yourpage.php?studio=<script>alert('xss');</script>
and
    <?
        $cam = $_GET['cam'];
        if ($cam == '1') {
            echo '<img src="http://example.com""  />';
        }
?>
That I don't think is exploitable since you are not doing anything with cam directly but are only acting if it is a string matching '1'.

« previous php.general (#289844) next »