Jump to content

Error In Posting Link To Image


RedNight

Recommended Posts

I am posting this in the security forums as I beleive this is security related. When trying to post a link to an image on our forums (phpBB) I get the following error:

 

Not Acceptable

An appropriate representation of the requested resource /forums/posting.php could not be found on this server.

 

In doing some research on the net it looks like it is a security setting on the server and it only seems to give this error when posting an image from like Image Shack or one of the other free image hosting sites. I am guessing this is related to some of the vuleralbilities with images and phpBB does anyone have any information on this?

 

TIA

 

RedNight

Link to comment
Share on other sites

Thank you for the reply Thomas and the welcome Bruce.

 

I thought that is what would be needed and have told the users of the forums to do that. Imageshack just happens to be the most popular one so I was wanting to let them continue using it.

 

We will work around it though by using another site. Thanks again for the prompt reply.

Link to comment
Share on other sites

Not Acceptable

An appropriate representation of the requested resource /forums/posting.php could not be found on this server.

 

If you are the web master, add a new text file ~/public_html/forums/.htaccess

 

Content:

><IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Edited by paultwang
Link to comment
Share on other sites

406 Not Acceptable is a HTTP error which is not caused by the forum scripts. Interestingly, many legitimate problems with 406 error are related to forums, blogs, and scripts using PHP.

 

I think the cause of this 406 error is: The security module thinks that your web browser cannot understand the content to be delivered to you, because your browser has specified a certain content-type. In the forum/blog case, it thinks that the content (which is usually your topic post/reply) contains something that your browser will not understand.

 

I believe the original intention of this feature/bug is to filter out dangerous script codes. If you disable the scan, make sure your forum/blog/other PHP scripts properly disallow/filter dangerous codes.

Edited by paultwang
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Hi, I'm Davide.

 

I'm an user community hosted from totalchoice.

Today I've received the same response from the server, while I'm posting a message containing url as "*foto.imageshack.us".

 

I Think that there is a security restriction so http server doesn't accept POST containing the words ".images"

 

My question is :"Is it possibile that server checks .images folder denying directory trasversal vulnerabilites and doesn't check any important folder as cgi-bin root etc.etcc... ?"

 

Imageshack is the most popular image hosting service used in forum community.

 

Are there any possibilities to avoid this problem?

 

Thank at all

 

//D

Link to comment
Share on other sites

Hi, I'm Davide.

[CUT]

 

I add that the problem is not only with imageshack but with all image hosting providers.

They usually generate from an upload file , another file that it combines default name file with other randomly characters.

If accidentally, in the upload filename appears the word ".images" , it will break all POST action containing this filename

Link to comment
Share on other sites

  • 1 month later...

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.   Paste as plain text instead

  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...