Skip to content

Magic Hash Vulnerability #8326

@paragonie-scott

Description

@paragonie-scott

return md5($password . substr($hash, 33)) == substr($hash, 0, 32);

You're using the non-strict equality operator to compare hashes...

http://blog.astrumfutura.com/2015/05/phps-magic-hash-vulnerability-or-beware-of-type-juggling/

cc @padraic @ircmaxell @enygma

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions