AOH :: HP Unsorted D :: BX2885.HTM

Deciphering the PHP-Nuke Capthca
Deciphering the PHP-Nuke Capthca
Deciphering the PHP-Nuke Capthca

The Capthca used in the current version 8.1 of PHP Nuke can be deciphered with 100% accuracy.   more information can be found her:

Exploit Code:

What is so interesting about this captcha is that it is incredibly wide spread. Variants of this captcha are being used by big names like Paypal. This particular captcha is used for the forgotten password feature. There are few differences between this captcha and the one i broke. For one the background is a different image. The captcha is also using alpha-numeric which would mean 36^5 = 60466176 possibilities

My attack against PHP-Nuke is taking advantage of the fact that there are only 10^6 or a 1,000,000 possible combinations of this captcha. It only takes a few minuets to calculate all possibilities. I am storing the results in as a md5 hash in a SQL database for speed. The entire SQL table needed to crack this captcha with 100% accuracy takes up less than 43 megabytes. After the table is generated it take only a few seconds to crack a captcha. This is a time-memory trade off very similar to Rainbow Crack. Let me be very clear that I am not relying on MD5 for security and in fact a faster and much less secure message digest function like Tiger is better suited for this task. MD5 is being used as an attack tool because it saves a lot of space and time verses storing the entire image in the database.

I created this list manually making sure that I checked the latest version.  This is by no means a complete list.

PHP-Nuke v8.1 FINAL
./html/mainfile.php starting on line 1574

PHP-Nuke v7.0
./html/admin.php line 111 in funciton gfx()
./modules/Your_Account/index.php  line 489 in funciton gfx()

123tkshop v0.9.1
file: admin.php
line: 142
function gfx($random_num)

phpMyBitTorrent v1.2.2
./html/gfxgen.php (the entire file)

torrentflux v 2.3
./html/login.php starting on line 40

e107 V0.7.11
This one is a bit spread out,  but the actual vulnerable captcha is being created on line 147 in:

webze v 0.5.9
./index.php about line 92

Opendb v 1.5.0b4
in ./functions/secretimage.php in the function secretimage() starting on line 35

Labgab v1.1
./core/code.php starting on line 31

The entire AOH site is optimized to look best in Firefox® 3 on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2015 AOH
We do not send spam. If you have received spam bearing an email address, please forward it with full headers to