Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ CMS (All) ⇒ Security :: Archives ⇒ Phpbb hack :: Archived


Phpbb hack :: Archived
Post any security related questions in here.
Please send discovered reports to security @ cpgnuke.com
Do Not post links to exploits or hacker sites - your post will be edited/deleted.
If you think you've been hacked, FIRST go through your server logs.

Go to page Previous  1, 2
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Security

Topic Archived View previous topic :: View next topic  
Author Message
safecracker4hire
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA
PostPosted: Tue Feb 14, 2006 1:04 pm
Post subject: Re: Phpbb hack

The logout issue is more of a PITA than a security problem. Where the problem lies is if you're logged in as an admin.

Parts of the admin section need to be rewritten due to this exploit. What concerns me is a malicious user can uninstall modules, disable or delete modules, remove menu links and a few other things that have no POST or confirmation to them in the admin section.

POC has been tested on my site by removing menu links and disabling modules.

As a quick fix, add a security check before allowing modifications requested by GET (fix by Biggles!).

Quote::
if ($module_name != $CPG_SESS['admin']['page']) { cpg_error(_ERROR_BAD_LINK, _SEC_ERROR); }


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
spacebar
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Sep 28, 2005
Posts: 413
Location: Providence
PostPosted: Tue Feb 14, 2006 3:06 pm
Post subject: Re: Phpbb hack

Where should this code be placed? Is there somthing I could grep on or does it go in only one spot?

Also, what about renaming the admin.php to something else? Would that slow an exploit like this down?

_________________


spacebar's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix / 2.0.46 (Red Hat) / 0.9.7a / 4.1.9-standard / 4.3.2 / 9.0.6.1
Back to top
View user's profile Visit poster's website ICQ Number AIM Address MSN Messenger Yahoo Messenger
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Tue Feb 14, 2006 3:17 pm
Post subject: Re: Phpbb hack

thanks safecracker for reporting them
dragonflycms.org/cvs/h...p?b=9.21.2
dragonflycms.org/cvs/h...hp?b=9.5.2

spacebar wrote:
Also, what about renaming the admin.php to something else? Would that slow an exploit like this down?
Yes it will unless they found out the name of your admin file.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
safecracker4hire
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA
PostPosted: Tue Feb 14, 2006 5:16 pm
Post subject: Re: Phpbb hack

Good work, DJ! Smile

Credit for POC, testing and the fix goes to Biggles! Wink

Spacebar --> have a look at the diffs for admin/modules/modules.php and you can see where DJ added similar code.


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: Tue Feb 14, 2006 5:34 pm
Post subject: Re: Phpbb hack

could this expolit can make users to unsuspened themself?


xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Tue Feb 14, 2006 5:36 pm
Post subject: Re: Phpbb hack

no noles the unsuspend needs the POST command


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
safecracker4hire
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA
PostPosted: Tue Feb 14, 2006 8:57 pm
Post subject: Re: Phpbb hack

xfsunoles wrote:
could this expolit can make users to unsuspened themself?

Nice thought though! Still trying to track down that pesky problem! Smile


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
safecracker4hire
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA
PostPosted: Tue Feb 14, 2006 9:02 pm
Post subject: Re: Phpbb hack

DJMaze wrote:
spacebar wrote:
Also, what about renaming the admin.php to something else? Would that slow an exploit like this down?
Yes it will unless they found out the name of your admin file.

That's a good suggestion too... like any approach to security... there is no one, single thing that will make you secure -- layers will be the most effective!


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Security
Page 2 of 2
All times are GMT
Go to page Previous  1, 2

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

もっと読む

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy