In the verifier.php I see a problem here:<p><pre><code> $uid=$_COOKIE['uid'];
$uname=$_COOKIE['uname'];
$sql="SELECT * FROM users WHERE username='$uname'";
</code></pre>
The $uname is set from the value of 'uname' in the $_COOKIE array, but I see no input validation here.<p>If I were an evil attacker, I could send arbitrary cookie data to the server, it would end up in the $_COOKIE superglobal. If I include some SQL code, ... All input is evil!<p>Later, in the welcome.php the $_COOKIE['uname'] is echoed without any escapes.