Jump to content

forum thread submit [bugs]


Faks

Recommended Posts

Hi all i am working on forum and i am close to testing stage and right now i am fighting serious bugs with $_GET ...

http://hostings.flush.ws/?section=forumview&id=1 [you can manipulate the values and create unknown threads in unknown forums :D]

http://hostings.flush.ws/?section=forumthreadsubmit&id=1 [you can manipulate the values and create unknown threads :D]

also can mix both and get like backdoor trojan without admin knowledge :D

 

		if ($id = ((isset($_GET['id'])) && (ctype_digit($_GET['id'])) ? (int)$_GET['id'] : ''))		
	{
		true;
	}
	else 
	{
		echo $redirect.false;
	}

 

Sow if somebody could show example how to counter attack value changing :)

 

You can login in web with user help pass help12

address http://hostings.flush.ws/?section=news

Link to comment
Share on other sites

ALL external data ($_POST, $_GET, $_COOKIE, $_FILES, and some $_SERVER/$_ENV values) can be anything anyone wants to submit, cannot be trusted, and must be validated to insure it has an expected value.

 

You must validate that the forum and/or thread exists before you do ANYTHING with the submitted data.

Link to comment
Share on other sites

Hi

 

Check the passed id against the database to check it is valid. Same for the id of a thread.

 

You should also check that the id is useable by that user. Ie, if a forum area is only available to mods then you do not want anybody being able to manipulate the id to get access to it.

 

All the best

 

Keith

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.