It is currently Sun Sep 05, 2010 6:05 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Potential XSS vulnerability - low risk
PostPosted: Tue Jul 06, 2010 11:45 am 
Offline
Site Admin
User avatar

Joined: Fri Feb 13, 2009 5:26 pm
Posts: 44
Location: Walworth, NY
A "white hat" hacking group has informed me that two of the admin pages are potentially vulnerable to XSS injection. These would be the two php scripts that save the pages you add and those you edit. While not identified, the two related snippets processor pages would also be vulnerable.

Their claim is that a user could inject XSS or other malicious code via these processor pages. However, all of the affected pages require you to be logged in as an administrator -- all are set to redirect you if you're not logged in.

Thus, to exploit this "vulnerability" you must be logged in as the site admin. In my mind, this makes the vulnerability nothing to lose sleep over. In my tests, you can't submit data to the form if you're not logged in. Furthermore, filtering the data you input would limit the current flexibility of the system -- other than the restrictions imposed by TinyMCE, you can input anything into the page/snippets so that you can add to your site as you see fit.

I'm not sure how or if I'll handle this in a future release. I sincerely appreciate the testing provided by this white-hat group. They have said they will publish their findings in a few days.

Tim

PS: I added this as an issue at the Google code site.


Top
 Profile  
 
 Post subject: Re: Potential XSS vulnerability - low risk
PostPosted: Wed Jul 21, 2010 2:23 pm 
Offline
Site Admin
User avatar

Joined: Fri Feb 13, 2009 5:26 pm
Posts: 44
Location: Walworth, NY
As noted previously, the affected administration pages require the user to be logged on with sufficient permissions. A malicious user cannot simply load the form processing page and use it to insert data. They must be logged on as an admin or the page will halt.

Thus the real risk arises when FestOS administrators do not log out before visiting other web sites. In such a situation, code at those sites could capitalize on the lingering logged on state, craft a special request to your FestOS site, and modify data (update a web page, add an administrator, etc.).

Until a fix is published, you can easily eliminate this vulnerability by logging out before leaving the site. (also, don't visit another site in another browser tab or window while remaining logged onto the FestOS admin system)


Top
 Profile  
 
 Post subject: Re: Potential XSS vulnerability - low risk
PostPosted: Sun Jul 25, 2010 9:43 am 
Offline
Site Admin
User avatar

Joined: Fri Feb 13, 2009 5:26 pm
Posts: 44
Location: Walworth, NY
I've posted a patch for the XSS vulnerability. You can grab it from the Google code site. http://code.google.com/p/festos/downloads/list You *must* merge the contents of the "ADD 2 YOUR config.php FILE.txt" file with your config.php file (core directory). The rest, just upload over the old files.

Tim


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Blue Moon by Trent © 2007
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group