Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2013, 03:10 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default mod_security and No Permission Page

Earlier this week, I was making some changes to one my clients websites and, for no apparent reason, I was blocked by a firewall. Turns out I was blocked from all my websites on my host's servers. I got them to lift the firewall within a few minutes and went back to work, and the very first options I tried to save gave me the no permissions error, essentially like the one below.

Quote:
Forbidden

You don't have permission to access /forums/admincp/automediaembed_admin.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
After working with them for a few days, I don't have any idea why this is happening, but it seems to be only happening with modifications, not vB core functions, but on every site I have vB installed (mine, my demo board and my client's website), and only when saving certain functions. They assure me that all my permissions are set, that mod_security has not logged any errors from any of my domains and that it's a vBulletin issue (3.8.5 or lower in all cases).

Specifically, what I've encountered is not being able to save settings where certain characters are being saved. For example, AME let's me save definitions that have RegEx patterns it uses to identify URL strings. I couldn't make any changes to those definitions until I either (grouped) or [bracketed] the http:// anywhere a RegEx would be saved. It still won't let me delete definitions, even if I blank all the fields. Another modification that lets me save human verification questions in a large form field, but I had to move the individual entries around before it wouldn't finally let me save it.

This doesn't seem to be a specific mod problem, but possibly a PHP problem. It's decidedly not a CHMOD issue. That the first thing I checked. I don't know what else to ask my host to look for to try and root out why I'm still having trouble. I do know that at least one setting let me get so far when trying to delete entries in a modification, but suddenly started denying me the first step. Is my forum just out of date? Are my mods just too old for PHP5? Or is it really mod_security that's the issues, and I have to figure out how to convince my host of that?
Reply With Quote
  #2  
Old 01-25-2013, 02:41 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Earlier this week, I was making some changes to one my clients websites and, for no apparent reason, I was blocked by a firewall. Turns out I was blocked from all my websites on my host's servers. I got them to lift the firewall within a few minutes and went back to work, and the very first options I tried to save gave me the no permissions error, essentially like the one below.



After working with them for a few days, I don't have any idea why this is happening, but it seems to be only happening with modifications, not vB core functions, but on every site I have vB installed (mine, my demo board and my client's website), and only when saving certain functions. They assure me that all my permissions are set, that mod_security has not logged any errors from any of my domains and that it's a vBulletin issue (3.8.5 or lower in all cases).

Specifically, what I've encountered is not being able to save settings where certain characters are being saved. For example, AME let's me save definitions that have RegEx patterns it uses to identify URL strings. I couldn't make any changes to those definitions until I either (grouped) or [bracketed] the http:// anywhere a RegEx would be saved. It still won't let me delete definitions, even if I blank all the fields. Another modification that lets me save human verification questions in a large form field, but I had to move the individual entries around before it wouldn't finally let me save it.

This doesn't seem to be a specific mod problem, but possibly a PHP problem. It's decidedly not a CHMOD issue. That the first thing I checked. I don't know what else to ask my host to look for to try and root out why I'm still having trouble. I do know that at least one setting let me get so far when trying to delete entries in a modification, but suddenly started denying me the first step. Is my forum just out of date? Are my mods just too old for PHP5? Or is it really mod_security that's the issues, and I have to figure out how to convince my host of that?
What's the user/group associated with the file? If the group or user has been changed that may account for not being able to access the file.
Reply With Quote
  #3  
Old 01-25-2013, 03:53 PM
vbresults vbresults is offline
 
Join Date: Apr 2009
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's possible Suhosin is doing this since it somehow found it's way into many popular package manager distributions of PHP5. I know this sounds too low-level for Suhosin, but you never know. -.-
Reply With Quote
  #4  
Old 01-26-2013, 02:34 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After being the only member in a closed forum posting and editing posts all day, I got the No Permission Error on edit.php. Then...

Attachment 143448
Reply With Quote
  #5  
Old 01-26-2013, 02:44 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're a Jedi right? What happened to The Force?
Reply With Quote
  #6  
Old 01-26-2013, 05:24 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's really only good for heavy lifting.

--------------- Added [DATE]1359224956[/DATE] at [TIME]1359224956[/TIME] ---------------

Apparently, I triggered another mod_security filter, so an exception was added to my account. I hadn't been doing a lot of work on my site(s) in some years until recently. There's not much I find frustrating, since I know how random this stuff can be. But this level of security all seems a little unnecessary.
Reply With Quote
  #7  
Old 02-02-2013, 02:46 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Turns out it was definitely related to mod_security. I had to have specific files set as exceptions from specific rules in order to correct the problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07595 seconds
  • Memory Usage 2,242KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete