|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-14 20:52 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 04:00:01 2025 UTC |
Description: ------------ I'm french and I'm 15, so excuse me for my verry verry bad english. I've found an xss fail in mysql_error(). You've just to do a synthax error (whit " in my example) and write your script after the ". Reproduce code: --------------- $var = '"<script>alert(\'Hi ! Xss discovered !\')</script>'; $rep = mysql_query('SELECT pseudo FROM membres where pseudo = "'.$var.'"'); if (!$rep) { echo '<br><b>Transmettre aux administrateurs : (via la page contact ou par mp) '.mysql_error().'</b>'; } else { return $rep; }