[Fixed]DragonflyCMS 9.0.6.1 search exploit
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexSecurity
Author Message
Jeruvy
Security Team


Joined: Apr 23, 2004
Posts: 1433
Location: Canada

PostPost subject: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Fri Aug 11, 2006 2:26 pm
Reply with quote

I see there still isn't any patch for this. If you are running a vulnerable site you should patch the search module.

I do not know if the dev's have released a patch for search module, but this is a pretty trivial fix.

Here is the report:

Posted on Bugtraq - Aug 10, 2006 by Dark Team

Quote:

## HeLiOsZ - Dark End Team - Internet Security Team ## Dragonfly CMS 9.0.6.1 and prior XSS

## IRC: darkend.sytes.net #darkend , darkend.sytes.net & www.darkend.org ## Rish : Medium ## Type : web applet

## Creator: www.cpgnuke.com/

## Exploit:
- The vuln is in the search section,it don't validate the imput.
To exploit this vuln you simply need an Internet Browser,you must only use a cookie
logger to get the Portal cookies.
To know if it is vulnerable: <script>alert('This is an XSS Vulnerability')</script>

## Dork: Interactive software released under GNU GPL, Code Credits, Privacy Policy

One simply needs to ensure javascript does not run (or runnable) via the search page form. Removing <script> should disallow javascript from being executed.

General disabling of javascript in your browser will have no affect on this.

Proper sanitization of search form fields would also correct this.

I did not fully inspect the downloads to see if there was a patch that wasn't mentioned in this forum. But I'm surprised this still hasn't been addressed. This has been a known issue for a long time.

Enjoy and hope you don't get hacked Smile

_________________
J.
j e r u v y a t y a h o o d o t c o m

Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net

Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
Back to top
View user's profile ICQ Number Yahoo Messenger
Jeruvy
Security Team


Joined: Apr 23, 2004
Posts: 1433
Location: Canada

PostPost subject: Re: Old search exploit posted - Full disclosure
Posted: Fri Aug 11, 2006 2:30 pm
Reply with quote

To follow up I noticed this site is not running a vulnerable search module. So maybe there is a update I'm not aware of?

If so maybe we can get a link added to this thread for others still running 9.0.6.1

_________________
J.
j e r u v y a t y a h o o d o t c o m

Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net

Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
Back to top
View user's profile ICQ Number Yahoo Messenger
spacebar
Dragonfly addicted


Joined: Sep 28, 2005
Posts: 413
Location: Providence

PostPost subject: Re: Old search exploit posted - Full disclosure
Posted: Fri Aug 11, 2006 7:54 pm
Reply with quote

Around line 100 where it says:
PHP:

OpenTable();
echo '<div class="genmed">'._SEARCHRESULTS.': '.$query.'</div>';
CloseTable();
Change $query to $the_query

Looking at the code, I don't find any other variables that aren't sanitized.

_________________


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
Jeruvy
Security Team


Joined: Apr 23, 2004
Posts: 1433
Location: Canada

PostPost subject: Re: Old search exploit posted - Full disclosure
Posted: Fri Aug 11, 2006 8:21 pm
Reply with quote

spacebar wrote:
Around line 100 where it says:
PHP:

OpenTable();
echo '<div class="genmed">'._SEARCHRESULTS.': '.$query.'</div>';
CloseTable();
Change $query to $the_query

Looking at the code, I don't find any other variables that aren't sanitized.

No I didn't see anyothers either as it was pretty trivial, but more importantly, I don't see a 'patch' for it in downloads.

Then someone may respond to the bugtraq post with the patch update.

_________________
J.
j e r u v y a t y a h o o d o t c o m

Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net

Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
Back to top
View user's profile ICQ Number Yahoo Messenger
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: Old search exploit posted - Full disclosure
Posted: Sat Aug 12, 2006 5:45 am
Reply with quote

I've added it to the original SF1 files,

Here is the official 9.0.6.1 SF1 branch file:
dragonflycms.org/cvs/h...hp?b=9.5.2
DJ Maze wrote:
To get the full branch use:
Code:
$ CVSROOT=:pserver:anonymous@dragonflycms.org:/cvs
$ cvs -q checkout -r Df-9_0_6_1-SF1 -P html


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
radiogetswild
500+ Posts Club


Joined: Apr 22, 2004
Posts: 685
Location: UK

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sat Aug 12, 2006 10:05 am
Reply with quote

Hi yer

Can you let me know what page you want changed on line 100 for this please cheers Tim


radiogetswild's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL Version 5.0.45 PHP Version 5.2.6 apache is 1.3.41 Dragonfly 9.2.1 Windows Vista
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
tuta
Supporter


Joined: Jun 29, 2004
Posts: 465
Location: Houston

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sat Aug 12, 2006 1:56 pm
Reply with quote

radio --> the search module's index.php
_________________
SEARCH the WIKI
How to Port for Dragonfly

tuta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/MySQL 4.1.22/PHP 4.4.6/9.1.2.1
Back to top
View user's profile Visit poster's website Yahoo Messenger
macavity
Heavy poster


Joined: Jun 23, 2004
Posts: 179

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sat Aug 12, 2006 2:17 pm
Reply with quote

Jeruvy,

Thanks for bringing this to light, much appreciated.

Mac


macavity's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/Apache 2.0/MySQL 5.0.77/PHP 5.2.10/Dragonfly 9.2.1
Back to top
View user's profile
Beldak
Nice poster


Joined: Jun 15, 2005
Posts: 78
Location: Edwards AFB, CA

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sat Aug 12, 2006 2:59 pm
Reply with quote

Does this apply to the 9.1.0.8 CVS branch? It appears it might, but that CVS wasn't updated. Just curious which branches we should be patching. Smile

Beldak's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.4.32 / Apache 1.3.37 / MySQL 5.0.16 / PHP 5.2.2 / Dragonfly CVS
Back to top
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sat Aug 12, 2006 7:08 pm
Reply with quote

CVS will be updated shortly - I prioritized my limited time on 9.0.6.1, the most important one Smile

(and I had a damned power failure as well)

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
madmax
Newbie


Joined: Oct 01, 2004
Posts: 49
Location: n/a

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sat Aug 12, 2006 10:12 pm
Reply with quote

Ok, so we should be good if we replace
/modules/Search/index.php
with
dragonflycms.org/cvs/h...hp?b=9.5.2

correct?

Also, how can I get these exploit notices emailed to me?

Thank you


madmax's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3/4.1/4.4.4/9.1.2.1
Back to top
View user's profile
spacebar
Dragonfly addicted


Joined: Sep 28, 2005
Posts: 413
Location: Providence

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sun Aug 13, 2006 12:11 am
Reply with quote

For the record, the only variable not being checked was what displayed the person's search string to himself on the string. No vulnerable variables were passed to the DB, so my thought is the person could only mess himself up.

It wasn't a real bad vulnerability. Am I right?

_________________


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
KitFox
Newbie


Joined: Jan 04, 2005
Posts: 1

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Sun Sep 03, 2006 12:43 am
Reply with quote

spacebar wrote:
For the record, the only variable not being checked was what displayed the person's search string to himself on the string. No vulnerable variables were passed to the DB, so my thought is the person could only mess himself up.

It wasn't a real bad vulnerability. Am I right?

It creates an XSS exploit condition. A user can post a URL with javascript included in the query, and then run that javascript in the sandbox of any user who clicks on that URL.

I won't give details, however this could, for example, allow a malicious user to steal any account, including admin login provledges. So it's pretty bad.


KitFox's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.4.27/1.3.33/4.0.21-log/4.3.10/9.0 RC1
Back to top
View user's profile Visit poster's website
spacebar
Dragonfly addicted


Joined: Sep 28, 2005
Posts: 413
Location: Providence

PostPost subject: Re: [Fixed]DragonflyCMS 9.0.6.1 search exploit
Posted: Mon Sep 04, 2006 5:07 pm
Reply with quote

KitFox wrote:
spacebar wrote:
For the record, the only variable not being checked was what displayed the person's search string to himself on the string. No vulnerable variables were passed to the DB, so my thought is the person could only mess himself up.

It wasn't a real bad vulnerability. Am I right?

It creates an XSS exploit condition. A user can post a URL with javascript included in the query, and then run that javascript in the sandbox of any user who clicks on that URL.

I won't give details, however this could, for example, allow a malicious user to steal any account, including admin login provledges. So it's pretty bad.

I think you're wrong because the DB selects were using a different variable. This non-sanitized variable was only used to display to the screen, other variables hit the Database.

I know about the xss methods, but for personal knowledege, I still fail to see what a person could have done with this other than display to themselves the exploit.

_________________


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
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexSecurity All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
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

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


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
This page generated in 1.4126 seconds with 16 DB Queries in 0.1504 seconds
Memory Usage: 3.03 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy