_
_ Handy PHP
_
_
Tutorials, Scripts, Information And Other Resources arrow Forum
Friday, 21 November 2008
_

Refer A Friend using Revolution Money Exchange
Resource Menu
Handy PHP Store
Free Domain Name
PHP Functions
PHP Downloads
PHP Newsfeeds
PHP Tutorials
Webmaster Tools
User Login
TalkPHP
Get friendly help with your PHP problems for free.
www.talkphp.com
The PHP Resource Index
Handy PHP
Free PHP Help!

FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Permissions Issue in Fireboard Searchbot 1.2.1 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Permissions Issue in Fireboard Searchbot 1.2.1
#311
brianjd (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Permissions Issue in Fireboard Searchbot 1.2.1 9 Months, 2 Weeks ago Karma: 0  
I thought I would let you know about a potential security issue with your Fireboard Searchbot. When Fireboard boards are setup for Any Registered user to have aceess, they are given a public_access value of -1. Since this is lower than the public public_access value of 0, messages on these boards are returned for searches when there should be no permission to do so.

I am including my fixes for your reference.

In fireboard.searchbot.php (code modified to remove uneeded slash-n comibnations, due to fireboard code glitch), starting at line 355:
Code:

// ***************************************************** // ***************************************************** // - Get the search results for the forum categories: $query = "SELECT c.name AS title," . " c.description AS text," . " c.hits," . " c.pub_access," . " c.published," . " '' AS created," . " '$section_name' AS section," . " '2' AS browsernav," . " CONCAT('index.php?option=com_fireboard&Itemid=', '$Itemid', '&func=showcat&catid=',c.id) AS href" . " FROM #__fb_categories AS c" . " WHERE ( $whereA )" . " AND c.published = 1"; if ($access == 0) { $query .= " AND c.pub_access = 0"; } else { $query .= " AND c.pub_access <= $access"; } $query .= " ORDER BY $orderA"; $database->setQuery( $query, 0, $limit ); $row1 = $database->loadObjectList(); // ***************************************************** // ***************************************************** // - Get the search results for the forum post messages: $query2 = "SELECT b.subject AS title," . " a.message AS text," . " b.hits," . " c.pub_access," . " c.published," . " c.description," . " FROM_UNIXTIME(b.time) AS created," . " CONCAT('$section_name','/', c.name) AS section," . " '2' AS browsernav," . " CONCAT('index.php?option=com_fireboard&Itemid=', '$Itemid', '&func=view&catid=',b.catid,'&id=',b.thread) AS href" . " FROM #__fb_messages_text AS a" . " INNER JOIN #__fb_messages AS b ON b.id = a.mesid" . " INNER JOIN #__fb_categories AS c ON c.id = b.catid" . " WHERE ( $whereB )" . " AND c.published = 1"; if ($access == 0) { $query2 .= " AND c.pub_access = 0"; } else { $query2 .= " AND c.pub_access <= $access"; } $query2 .= " ORDER BY $orderB"; $database->setQuery( $query2, 0, $limit ); $row2 = $database->loadObjectList();
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#314
vujsa (Admin)
Admin
Posts: 141
graph
User Online Now Click here to see the profile of this user
Re:Permissions Issue in Fireboard Searchbot 1.2.1 9 Months, 1 Week ago Karma: 4  
Thank you very much for this report. Feedback on the projects here always make the end product better. After all, I can't foresee every possible problem nor can I fully test every possible configuration that might affect the script.

I would like to pint out to anyone that may read this and be concerned, While the SearchBot may return results that the user is now allowed to view, FireBoard and Joomla will not allow them to see the actual resource. So for now, I will categorize this as a permissions issue but unlikely to be a true security issue.

I will address this issue in the next update of the script.

Again, thank you,
vujsa
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

_
 
_
_
© 2008 Handy PHP