|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-10-20 01:11 UTC] yohgaki@php.net
-Status: Open
+Status: Verified
[2016-10-20 09:45 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 21:00:01 2025 UTC |
Description: ------------ filter validate URL is broken for non HTTP(s) protocols as it allows a variety of URLs to pass through though they are not valid URLs (possible XSS attacks if URL is displayed after validating) Test script: --------------- <?php echo filter_var("ftp://oscarotero.com;<script>alert()</script>", FILTER_VALIDATE_URL); // outputs JS alert box. ?>