Closed (works as designed)
Project:
Drupal core
Version:
6.13
Component:
blog.module
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2009 at 19:40 UTC
Updated:
25 Jul 2011 at 14:27 UTC
Sort of an odd one. I was running into 501 errors trying to save a blog entry. I ended up trying to save it sentence by sentence and then character by character to figure out exactly what was causing the problem. Anyway, here's the post in question:
http://gohanman.com/cms/node/619
If I edit the node and change "/etc/shado" to "/etc/shadow" (in the body field) and hit the save button, I get this:
Method Not Implemented
POST to /cms/node/619/edit not supported.
Maybe there's an explanation and this is somehow expected behavior, but it took me by surprise. The idea that Drupal might be trying to mess around with the local machine's password file makes me a bit nervous though.
Comments
Comment #1
damien tournoud commentedI suppose you have mod_security on this server, and that it is misbehaving (again).
Comment #2
gohanman commentedSounds possible. Shared hosting, unfortunately, so I can't do much about it.
EDIT: any easy way to check without having access to httpd.conf?
Comment #3
mdupontYou can try dropping a file with
phpinfo();in it, but it may also be filtered.Anyway, you have something somewhere that is monitoring POST requests and prevents the ones it considers harmful. /etc/shadow being a critical system file on UNIX servers it then rejects any request with this filename in it, in case it is an attack attempt. There is not much you can do there from the Drupal side.