Vulny-Code-Static-Analysis/vulns/sql-ip.php

7 lines
168 B
PHP

<?php
function GetIP(){
$cip = $_SERVER["HTTP_X_FORWARDED_FOR"];
$cip = $_SERVER["REMOTE_ADDR"];
mysql_query("SELECT * from toot where ip=$cip");
}
?>