| | #1 |
| Rookie | XtremeBB 0.1.1 Released! Hello, XtremeBB 0.1.1 is released. Known bugs on XtremeBB 0.1.1: - Footer (Forum Version doesnt change) Additions to XtremeBB 0.1.1: Upgrade Wizard [ADDED] Bugs fixed: cp.php? [Fixed] Copyright link fixed. ---------------------- XtremeBB - A Free Forum Software based on PHP and SQL
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ~~ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
| | |
| | #2 |
| Member | I see a huge issue here... Code: else if (isset($_POST['confirm'])) {
/**
* USer wants to delete, so proceed, then exit and return
*/
$post_id = $_POST['post_id'];
$check_firstpost = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ".MYSQL_TABLE_PREFIX."threads
WHERE thread_first_post_id='{$post_id}'"));
if ($check_firstpost[0] != 0) {
$get_post = mysql_fetch_array(mysql_query("SELECT * FROM ".MYSQL_TABLE_PREFIX."posts WHERE post_id='{$post_id}'"));
//echo $get_post['post_belongs_to_thread'];
mysql_query("DELETE FROM ".MYSQL_TABLE_PREFIX."threads
WHERE thread_id='{$get_post['post_belongs_to_thread']}'");
mysql_query("DELETE FROM ".MYSQL_TABLE_PREFIX."posts
WHERE post_belongs_to_thread='{$get_post['post_belongs_to_thread']}'");
echo mysql_error();
}
There are several other problems here as well: Using a SELECT * to pull the value from a single column Relying on the ID of the first post in the thread to delete the thread rather than the thread ID Echoing out mysql_error() without even checking to see if there was an error first
__________________ The Oldiesmann To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Compliance Manager / Marketing Team member To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - RC1 now available! |
| | |
| | #3 |
| Rookie | You mean theres no CAPTCHA when you post. On the ACP you could control who posts. And in 0.2.0 our main addition will be CAPTCHA ^_^!
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ~~ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
| | |
| | #4 |
| Member | Captcha has absolutely nothing to do this. What's to stop me from creating a form like the one I mentioned above and posting a valid post ID to delete.php on your site and deleting any thread I want?
__________________ The Oldiesmann To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Compliance Manager / Marketing Team member To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - RC1 now available! |
| | |
| | #5 |
| Rookie | Owooo... I see. Okay, I will fix that then... We might not have the best security. I will try and do my best working on security on 0.2.0 ^_^!
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ~~ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| XtremeBB (Forum Software) | Sir Rusty | Software | 21 | 11-16-2009 02:47 PM |
| XtremeBB 0.1.0 .:Released:. | Sir Rusty | Software | 0 | 09-19-2008 05:57 PM |
| [IPB News] IP.Blog 1.4.0 Beta 3 Released | Industry News | Invision Power Board | 0 | 04-24-2008 05:40 PM |
| [MyBB News] MyBB 1.2.10 Released - Maintenance Release | Industry News | Other Software | 1 | 12-01-2007 05:49 PM |
| High speed desktop Gnome released | shellspeare | Off Topic | 0 | 02-24-2006 08:38 AM |
