It is currently Tue Sep 01, 2026 4:17 pm


security hole on download&weblinks module PHP nuke

Discuss security related topics in here (Hacking, Cracking, and Protecting)
Do not post HJT Logs here

Moderator: PCguy

security hole on download&weblinks module PHP nuke

Postby nuratasya » Fri Oct 10, 2003 5:47 pm

It has been reported that the default modules of download&weblinks has a large security hole.
This seems to be an attack that works agaisnt the new abstraction layer and the old.
This new attack will list your sites admin account with aid's and passwords if you do not use the following patch.
Click read more to find how to fix it.
The patch is simple, just open modules/Downloads/index.php in an text editor and find function viewdownload and place $cid = intval($cid); right after the global line.
Same thing with the weblink module, just open modules/Web_Links/index.php in an text editor and find function viewlink and place $cid = intval($cid); right after the global line.
Several sites has been hacked with this type.

is there really a security hole on download&weblinks module PHP nuke ?
I had checked with some sites on this issues but could not found any thread or news whatsoever
Can anyone here check the validility of that security hole?
Thanks
User avatar
nuratasya
Newbie
Newbie
 
Posts: 13
Joined: Fri Sep 05, 2003 1:00 am

Thanks given:0
Thanks received:0
Top

Postby NaTaS » Sat Oct 11, 2003 2:51 am

Yes it is valid...Unfortunately. If you've upgraded to 7.0 you're fine. The versions affected up to 6.5. This is another example of the pain Mr. Bucci has had with SQL Injection exploits. PHPNuke is akin to IIS with all the troubles it has with exploits.

The exploit existed in 6.5's Web_Links and Downloads modules. A hax0r (;p) could insert arbitrary code in specific variables in a request to a script, such as the modules.php or index.php script, which would allow the them to get user passes from the backend database.

Oddly enough the Download exploit was exploitable because the plugin coder didn't use inverted comas.


Example:

www.website.com/modules.php?name=Downlo ... sql_query("update ".$prefix."_downloads_downloads set hits=hits+1 WHERE lid=$lid", $dbi); $result = sql_query("SELECT url FROM ".$prefix."_downloads_downloads WHERE lid=$lid", $dbi);
User avatar
NaTaS
Senior Geek
Senior Geek
 
Posts: 155
Joined: Thu Sep 20, 2001 1:00 am
Location: USA

Thanks given:0
Thanks received:0
Top

Postby nuratasya » Sat Oct 11, 2003 5:34 am

:wink: Thanks for the speedy reply.
Here the simple patch:

The patch is simple, just open modules/Downloads/index.php in an text editor and find function viewdownload and place $cid = intval($cid); right after the global line.
Same thing with the weblink module, just open modules/Web_Links/index.php in an text editor and find function viewlink and place $cid = intval($cid); right after the global line.

OR you can download HERE made by chatserv.
User avatar
nuratasya
Newbie
Newbie
 
Posts: 13
Joined: Fri Sep 05, 2003 1:00 am

Thanks given:0
Thanks received:0
Top

Postby PCguy » Mon Oct 13, 2003 12:17 am

I am updated. Thanks for the heads up. :cool:
(\__/) This is Bunny.
(='.'=) Copy and paste bunny into your sig.
(")_(") Help Bunny gain World Domination.

Image
User avatar
PCguy
Lord of the Geeks
Lord of the Geeks
 
Posts: 2017
Joined: Sat Sep 15, 2001 1:00 am
Location: A Very Scarey Place
Operating System:

Thanks given:2
Thanks received:4
Top


Return to Security

Who is online

Users browsing this forum: No registered users and 1 guest

cron