The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Input Cleaning
Okay, somebody save me from myself. I can't get my request to clean.
Code:
$pw = $vbulletin->userinfo[password]; $string = md5($pw); $h =& $vbulletin->input->clean_gpc('r', 'h', TYPE_UINT); if ($_REQUEST['do'] == 'unsub') { if (md5($h) === $string) { echo 'correct'; } else { echo 'incorrect'; } } |
#2
|
||||
|
||||
PHP Code:
|
#3
|
||||
|
||||
Still fails incorrect. That's alright though, I'm just going to use $_GET -- it never touches SQL, so I don't see how it could be exploited.
|
#4
|
|||
|
|||
Why are are seeing if the hash is an integer? Shouldn't it be TYPE_STR?
PHP Code:
|
#5
|
||||
|
||||
Ha ha... wow. Thanks Harmor, I'm feeling a wee bit stupid.
|
#6
|
|||
|
|||
Quote:
I gave you the idea and I fixed your code. I want some credit j/k Good luck on your hack |
#7
|
||||
|
||||
Ha ha, well I reminded you of your missing table prefixes!
Don't worry, I'll mention ya. (small print though) |
#8
|
||||
|
||||
There was more wrong than just that.
|
#9
|
||||
|
||||
What else is wrong? Because it's working fine now after changing the type.
|
#10
|
|||
|
|||
We love seeing you make an ass out of yourself.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|