QUOTE
- %2527 escapes cleaning and when url decode is ran on it when getting a cookie
- it changes to '
- the login page will take that
- if compiled with pass_hash in a cookie
- in the login page
- the %2527 which is ' is put into the sql query
- which allows u to sql inject
- to get the right pass hash
- then just make a new cookie with the right pass hash
- and u get control over a persons account
- it changes to '
- the login page will take that
- if compiled with pass_hash in a cookie
- in the login page
- the %2527 which is ' is put into the sql query
- which allows u to sql inject
- to get the right pass hash
- then just make a new cookie with the right pass hash
- and u get control over a persons account
Fortunately, later in the chat he posted the fix, again, I can neither confirm nor deny this is valid, just relaying the info on to you:
QUOTE
- login.php
- find:
- If ( $mid and $pid )
- {
- add
- $pid= str_replace("'", "\\'", $pid);
- and it will kill the exploit
- find:
- If ( $mid and $pid )
- {
- add
- $pid= str_replace("'", "\\'", $pid);
- and it will kill the exploit
The query in auto_login that gets exploited gets turned into something like this:
QUOTE
- SELECT * FROM ibf_members
- WHERE id=$id AND password='$pass' OR
- id=$target
- HAVING id=$target AND
- MID(`password`,$i,1)='$letter'
- WHERE id=$id AND password='$pass' OR
- id=$target
- HAVING id=$target AND
- MID(`password`,$i,1)='$letter'
I removed the posters name because I don't want to make it seem like he's a bad guy. He never mentioned he would use this on anyone maliciously, but he did say he's not a licensed customer so he can't post it here. Please take a look at this and verify that there is actually an exploit here. Thanks!
