Skip to content
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
Open
@jfm-so

Description

@jfm-so

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions