This repository was archived by the owner on Apr 8, 2023. It is now read-only.
This repository was archived by the owner on Apr 8, 2023. It is now read-only.
Strip Tags #82
Open
Description
Contributed by @nmalcolm
"Okay, let's start again. You're running strip_tags() on the input password which has absolutely no purpose. Should a user choose a password such as , their password will be an empty string and anyone can log into their account without a password."
test.php:
<?php
function hashp($password) {
return md5(addslashes(strip_tags($password)));
}
echo hashp('<secretpassword>') . " | " . hashp(null);
Output:
d41d8cd98f00b204e9800998ecf8427e | d41d8cd98f00b204e9800998ecf8427e
Metadata
Metadata
Assignees
Labels
No labels