Skip to content

Instantly share code, notes, and snippets.

@aidantwoods
Created May 31, 2017 08:12
Show Gist options
  • Save aidantwoods/b1af3d0f25219ebd9e9f1bf83762c496 to your computer and use it in GitHub Desktop.
Save aidantwoods/b1af3d0f25219ebd9e9f1bf83762c496 to your computer and use it in GitHub Desktop.
Try ?password=0
<?php
$unfortunateHash = '0e23957352';
if ($unfortunateHash == $_GET['password'])
{
echo 'logged in!';
}
else
{
echo 'incorrect password';
}
@aidantwoods
Copy link
Author

I'll admit, this one is very unlikely in the way it's presented – not impossible though. Or could bite you in another use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment