Whenever I try to set the publisher id at /admin/settings/adsense/id I get Page Not Found errors across my site for about 30 seconds and the id is never set. I've never seen symptoms like this before and I have no idea what's going on. I tried reinstalling the module to no avail.

I'm still running 6.2 if anyone is wondering. Let me know if you have any other questions.

Comments

hansamurai’s picture

Comment #1

hansamurai commented

Same problems in Drupal 6.4

webthingee’s picture

Comment #2

webthingee commented

Same Problem Here.
Checked with my host provider who sent me the following info...
hope if helps

Your IP was blocked because our security software (mod_security) detected a possible code injection attempt from that IP address. Here is the message from our logs:

[Sun Sep 07 00:41:57 2008] [error] [client 00.000.000.000] ModSecurity: Access denied with code 406 (phase 2). Pattern match "(?:\\\\b(?:(?:n(?:et(?:\\\\b\\\\W+?\\\\blocalgroup|\\\\.exe)|(?:map|c)\\\\.exe)|t(?:racer(?:oute|t)|elnet\\\\.exe|clsh8?|ftp)|(?:w(?:guest|sh)|rcmd|ftp)\\\\.exe|echo\\\\b\\\\W*?\\\\by+)\\\\b|c(?:md(?:(?:32)?\\\\.exe\\\\b|\\\\b\\\\W*?\\\\/c)|d(?:\\\\b\\\\W*?[\\\\\\\\/]|\\\\W*?\\\\.\\\\.)|hmod.{0,40}? ..." at REQUEST_HEADERS:Referer. [id "950006"] [msg "System Command Injection. Matched signature "] [severity "CRITICAL"] [hostname "zzzzzzzzzz.com"] [uri "/modules/system/defaults.css?J"] [unique_id "zzzzzzzzzzzzzzzzzzzzzzzz"]

There are more, let me know if you need me to sent them directly. I would gladly do that and help however I can.

Sean

hansamurai’s picture

Comment #3

hansamurai commented

Is this information typically available from some logs or did you have to specifically ask for it?

webthingee’s picture

Comment #4

webthingee commented

It was information that they forwarded me when I asked why I was not able to access my website. They said the site tried to run malicious code and this is a part of the info they sent me.

I saved it and can forward it to you if it would be helpful. I would even be willing to crash my site again for you if it would help :)

Sean

hansamurai’s picture

Comment #5

hansamurai commented

That's okay... I have no idea how to troubleshoot that so maybe wait until someone more intelligent knows. ;0

jcnventura’s picture

Comment #6

jcnventura
Primary language English
commented

So, when loading the /modules/system/defaults.css file, a match is found against some rule.. This has little to do with the module, except that you're saying it only happens after setting the publisher ID?

Are you two using the same hosting service?

webthingee’s picture

Comment #7

webthingee commented

mine is on site5

hansamurai’s picture

Comment #8

hansamurai commented

Sorry to take so long to respond, I'm using PolurNet at the moment.

jcnventura’s picture

Comment #9

jcnventura
Primary language English
commented

Now that we have established that it's not hosting-service specific, and assuming it only happens in the ID form, I see two possibilities:

1. The URL of the ID form is being matched (easy to fix)
2. The contents of the ID form are being matched (harder to debug)

I will try to come up with a patch which you guys can try for 1. next week.

João

webthingee’s picture

Comment #10

webthingee commented

That would be awesome!!
Let me know when you need a test, I'll give it a go :)

landland’s picture

Comment #11

landland commented
Version: 6.x-1.0-beta1 » 6.x-1.0-beta3

Hello,

I'm running into the same problem here. Using 6.x-1.0-beta3 and Drupal 6.6. any ideas?

kbahey’s picture

Comment #12

kbahey commented

Another report of this, marked as duplicate http://drupal.org/node/332693

robbes’s picture

Comment #13

robbes commented

Somehow easy to fix by adding a / behind the url, like:
http://www.excelhet.nl/index.php?q=admin/settings/adsense/id /

jcnventura’s picture

Comment #14

jcnventura
Primary language English
commented
Status: Active » Fixed

Hi,

The one week turned into two months and one week :)

Anyway, I replaced the id path by pubid to try to prevent this problem. Please try today's dev version.

João

rs-it’s picture

Comment #15

rs-it commented
Status: Fixed » Active

I have the same problem and I tried to use the new dev version and the problem remains the same.
each time I am tring to save the ID I get unkown page with the message "The requested page could not be found"

jcnventura’s picture

Comment #16

jcnventura
Primary language English
commented
Status: Active » Fixed

OK.

New attempt: the new dev will be using publisher as the path (not id or pubid).

Let's see if that fixes it once and for all.

João

Comment #17

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.