Zen Cart Logo
Forums / Fraud Prevention / who's online page shows weird URL containing other sites' domain name

who's online page shows weird URL containing other sites' domain name

Views: 193

Results 1 to 10 of 10
15 Apr 2016, 4:07 PM
#1
fast8 avatar

fast8

New Zenner

Join Date:
Sep 2015
Posts:
8
Plugin Contributions:
0

who's online page shows weird URL containing other sites' domain name

For years on the who's online page I see many hackers trying all kinds of URLs not exiting on my site (especially WordPress links, though my site doesn't have WordPress), these URLs don't containing other sites' domain names.

But recently I got flooded by Russia and Ukraine IPs in the who's online page, all the URLs are quite weird and don't exist on my site, what's worse all these URLs contain other site's domain (this domain zennolab.com shows many times):

Attachment 16220

Attachment 16221

Attachment 16222

Attachment 16223

I keep banning these IPs, but this doesn't work much, they keep changing IPs and coming again, it seems that they have unlimited IP addressed.

I'm quite worried, does this mean my site has been hacked? or does this indicate that my site has problem? anyone else ever met this problem? please zen gurus give me a hand:(

15 Apr 2016, 4:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: who's online page shows weird URL containing other sites' domain name

  1. What version of Zen Cart?
  2. What version of PHP?
  3. Why is the OFFICE_IP_TO_HOST_ADDRESS not properly defined?
  4. What alterations have you made to your site, different from original Zen Cart code?
  5. Please answer the rest of the questions that appear when you click the Reply button below.
15 Apr 2016, 5:55 PM
#3
fast8 avatar

fast8

New Zenner

Join Date:
Sep 2015
Posts:
8
Plugin Contributions:
0

Re: who's online page shows weird URL containing other sites' domain name

Thank you sooooooo much, DrByte!

  1. What version of Zen Cart?
    1.3.9H

  2. What version of PHP?
    PHP 5.2.17 (Zend: 2.2.0), MySQL 5.0.96-log

  3. Why is the OFFICE_IP_TO_HOST_ADDRESS not properly defined?
    I guess this problem link to the configuration setting under "sessions>>IP to Host Conversion", I set it to false.

  4. What alterations have you made to your site, different from original Zen Cart code?
    I'm using the 12leaves.com pure_green template, and then changed a lot HTML and css for better looking

  5. What plugins/addons have you installed? When?

all plugins were downloaded from zen-cart.com, I never download from other places. Here is the list of plugins:

admins notes advanced
wishlists
admin profile
database backup-mysql
display log files
export email addresses
email archive manager
image manager
ip blocker
recover cart sales
sitemap xml
sales report
admin activity
ultimate SEO URLs
quick update
easypopulate (never used)
Paypal express checkout, Skrill payment module, MZMT and a few other shipping and payment module
simple popup
CAPTCHA Validation
image handler
news & articles
ZC backup
CSS/JS loader
JQ light box

Ajax search suggestions with image
bcastr banner swap

  1. Has your site been upgraded? When? From what version(s)?
    I upgraded from 1.3.9g to 1.3.9h in 2010 or 2011

  2. If you've upgraded, HOW did you upgrade? (official upgrade procedure or an automated script from your hosting company?)

I strictly followed the official update procedures in the Zencart installation package, updated manually

  1. WHEN did the problem "start"?

I noticed this problem on Jan 2016, but I don't install any plugin at that time, actually I haven't install plugins for years

8 .HOW did you install Zen Cart?
upload via FTP and run zc_install

  1. Please post the contents of related "debug logs" generated by Zen Cart
    no debug file seems related.

some more pictures, maybe have some help:

Attachment 16225

15 Apr 2016, 6:13 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: who's online page shows weird URL containing other sites' domain name

It seems that perhaps whatever you've added that changed your whos_online code to add the IP blocking has also changed how the URL is displayed. It seems like perhaps it's showing the referrer (the URL they came from before they got to your site) instead of the actual URL of the page they're visiting on your site.

Or maybe someone's been tampering with your site. I'd recommend a complete inspection of all your PHP/etc files, comparing them against your last good backup, just to be sure nothing's been altered/added without your notice. Very similar to the guidance offered here: http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks ... At least follow thru the process until you're satisfied that nothing's been tampered with.

And then I'd explore putting back the original files that your IP Blocker plugin altered, and see what the whos_online shows after that.

... And then I'd strongly recommend upgrading your site to a modern version of Zen Cart. Yours is very old.

15 Apr 2016, 7:14 PM
#5
fast8 avatar

fast8

New Zenner

Join Date:
Sep 2015
Posts:
8
Plugin Contributions:
0

Re: who's online page shows weird URL containing other sites' domain name

I can't thank you enough! Drbyte.
OK, I will follow all your suggestions, and see what I will get, I will feed back here

15 Apr 2016, 7:34 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: who's online page shows weird URL containing other sites' domain name

DrByte:

  1. Why is the OFFICE_IP_TO_HOST_ADDRESS not properly defined?

I have to dig up where I have seen this issue before, but never found the answer to just this question... is there more information about it? I mean, intent, what it is to represent, what might cause it to become undefined, where is it normally defined, harm/effect of it being undefined? Kind of been meaning to ask about it and glad to take to a different/new thread if seen fit.

19 Apr 2016, 8:45 PM
#7
fast8 avatar

fast8

New Zenner

Join Date:
Sep 2015
Posts:
8
Plugin Contributions:
0

Re: who's online page shows weird URL containing other sites' domain name

In the past a few day I've struggled to audit my site thoroughly by strictly following here: https://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks and DrByte's suggestions.

Below is what I've done:

  1. checked the index.php in the root directory, no change. also no index.html was added
  2. Ftp-downloaded the whole image folder and compared it with a few former backups by Winmerge, all changes were made by myself
  3. Ftp-downloaded all the rest files and folders, compared with 2 backups by Winmerge, one backup was from 3 months ago, and the other backup was even from one year ago, all the changes were made by myself, no suspicious file or folder.
  4. checked the settings in the admin>>payment modules, all credentials remain unchanged.
  5. checked the server error logs and access logs, and found all these weird HTTP requests, see below.

I'd recommend a complete inspection of all your PHP/etc files, comparing them against your last good backup, just to be sure nothing's been altered/added without your notice. Very similar to the guidance offered here: http://www.zen-cart.com/wiki/index.p...ing_From_Hacks ... At least follow thru the process until you're satisfied that nothing's been tampered with.

I've done all this, except stopping my site and reporting to the hosting company (at this point I don't know if there is a problem in the server or not), the result is that all the files and folders on my server remain untouched by hacker.

It seems that perhaps whatever you've added that changed your whos_online code to add the IP blocking has also changed how the URL is displayed........And then I'd explore putting back the original files that your IP Blocker plugin altered, and see what the whos_online shows after that.

I tried restoring the original whos_online.php, even tried a few versions:V1.3.9, V1.5.1, V1.5.4, V1.5.5, but all showed the same weird URLs with other domain names, so I don't think this problem has anything to do with IP Blocker codes, also the raw server access logs proved that these HTTP GET/CONNECT/HEAD requests came with other domain names, see below.

whos_online.php codes can correctly show the original domain name, but it can NOT show the left part of the whole requesting URL. For example whos_online.php show the URL as:
Attachment 16237

prospero.ru:433

The original request in the access logs is:

here is hacker IP*.*.*.* - - [here is visiting time] "CONNECT prospero.ru/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/hosting path to webroot/index.php" **** ****

This very weird thing: these weird GET/CONNECT/HEAD HTTP requests were headed with other sites' domain names and were pointing to other sites, but why they were routed to visit my server?

It seems like perhaps it's showing the referrer (the URL they came from before they got to your site) instead of the actual URL of the page they're visiting on your site.

The accessing logs prove that these URLs are not referres but actual requesting URLs

Or maybe someone's been tampering with your site.
Someone is trying to hack my site, though currently it seems they did not succeed, but it seems my site traffic is dropping.

  1. I banned their IPs, but they keep changing IP and query my site all the day.
  2. 90% of these IPs come from Russia, and 5% from Ukraine, and then some other countries.
  3. the wording of these domain names shows they must be IT insiders/hackers.
  4. they use CONNECT requests quite much, are they using my server as a proxy?

related error log:

[here is day and time] [here is hosting number] [fcgid:warn] (104)Connection reset by peer: [client 95.133.96.215:62033] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

related access logs: (each record showed hundreds times in one day's log, I only write once for each here.)

a normal request for comparison:

1.9.98.110 - - [day and time -time zone] "GET www.mydomainname.com/path to webroot/path to a picture on my server" 200 70395 "-" "Mozilla/5.0 (Linux; U; Android 4.2.1; en-us; Lenovo K900_ROW Build/JOP40D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 GSA/5.11.35.16.x86" 0 "-" "/path to webroot/path to a picture on my server" ***** ****

Below are hacker's requests, it seems they can fake any domain name for the same IP address:

46.98.195.224 - - [17/Apr/2016:16:08:53 -0700] "CONNECT www.pediped.com/path to webroot/index.php HTTP/1.0" 302 441 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 865480 ****
46.98.195.224 - - [17/Apr/2016:14:55:29 -0700] "CONNECT gmemberssl.gmarket.co.kr/path to webroot/index.php HTTP/1.0" 302 441 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 513867 ****

185.5.250.192 - - [15/Apr/2016:08:26:54 -0700] "GET chek.zennolab.com/path to webroot/proxy.php??main_page=.errordocs/404 HTTP/1.1" 302 530 "RefererString" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" 0 "x-httpd-php" "/path to webroot/index.php" 587552 ****
138.128.112.11 - - [15/Apr/2016:11:39:03 -0700] "GET chek.zennolab.com/path to webroot/proxy.php??main_page=.errordocs/404 HTTP/1.1" 404 18818 "RefererString" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" 0 "x-httpd-php" "/path to webroot/index.php" 1214971 ****

185.5.250.192 - - [16/Apr/2016:00:07:17 -0700] "GET check2.zennolab.com/path to webroot/proxy.php??main_page=.errordocs/404 HTTP/1.1" 302 530 "RefererString" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" 0 "x-httpd-php" "/path to webroot/index.php" 346916 ****
78.11.69.3 - - [15/Apr/2016:07:30:45 -0700] "GET check2.zennolab.com/path to webroot/proxy.php??main_page=.errordocs/404 HTTP/1.1" 404 18792 "RefererString" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" 0 "x-httpd-php" "/path to webroot/index.php" 1138083 ****

185.5.250.192 - - [16/Apr/2016:00:16:58 -0700] "GET chekfast.zennolab.com/path to webroot/proxy.php??main_page=.errordocs/404 HTTP/1.1" 302 530 "RefererString" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" 0 "x-httpd-php" "/path to webroot/index.php" 591108 ****
37.204.61.205 - - [15/Apr/2016:11:32:25 -0700] "GET chekfast.zennolab.com/path to webroot/proxy.php??main_page=.errordocs/404 HTTP/1.1" 404 18810 "RefererString" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" 0 "x-httpd-php" "/path to webroot/index.php" 1057327 ****

94.41.217.211 - - [15/Apr/2016:04:52:03 -0700] "CONNECT prospero.ru/path to webroot/index.php HTTP/1.0" 200 81345 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1897234 ****
95.133.83.216 - - [15/Apr/2016:16:42:35 -0700] "CONNECT prospero.ru/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 756484 ****
95.133.54.237 - - [16/Apr/2016:17:54:13 -0700] "CONNECT prospero.ru/path to webroot/index.php HTTP/1.0" 500 47520 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 2760071 ****

146.255.251.90 - - [14/Apr/2016:00:55:00 -0700] "CONNECT www.yandex.ru/path to webroot/index.php HTTP/1.1" 200 81273 "-" "Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/123" 0 "x-httpd-php" "/path to webroot/index.php" 1267533 ****

5.165.128.232 - - [14/Apr/2016:01:06:34 -0700] "CONNECT www.origin.com/path to webroot/index.php HTTP/1.0" 500 47520 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1253762 ****
5.165.128.232 - - [14/Apr/2016:01:09:03 -0700] "GET steamcommunity.com/path to webroot/index.php HTTP/1.1" 200 81211 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 0 "x-httpd-php" "/path to webroot/index.php" 1010171 ****

95.133.83.216 - - [16/Apr/2016:00:07:47 -0700] "GET expertnoemnenie.ru/path to webroot/api/v1/login??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" 0 "-" "/path to webroot/index.php" 324262 ****
95.133.83.216 - - [16/Apr/2016:00:20:59 -0700] "GET plibber.ru/path to webroot/ajax_script/login.php??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" 0 "-" "/path to webroot/index.php" 707968 ****

81.177.57.26 - - [16/Apr/2016:09:53:47 -0700] "CONNECT accounts.ea.com/path to webroot/index.php HTTP/1.0" 200 81316 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1490000 ****
109.191.22.242 - - [15/Apr/2016:04:41:37 -0700] "CONNECT accounts.ea.com/path to webroot/index.php HTTP/1.0" 500 46720 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 25030601 ****

134.90.159.198 - - [16/Apr/2016:16:13:47 -0700] "CONNECT signin.ea.com/path to webroot/index.php HTTP/1.0" 200 81379 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1534491 ****
134.90.159.198 - - [16/Apr/2016:22:31:39 -0700] "CONNECT signin.ea.com/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 960710 ****

109.191.224.164 - - [16/Apr/2016:00:20:00 -0700] "CONNECT api.minergate.com/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 632685 ****
85.14.71.18 - - [15/Apr/2016:04:40:19 -0700] "CONNECT api.minergate.com/path to webroot/index.php HTTP/1.0" 500 74111 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1376260 ****

176.195.40.56 - - [15/Apr/2016:00:24:50 -0700] "CONNECT www.paypal.com/path to webroot/index.php HTTP/1.0" 200 81444 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 2644614 ****
176.195.40.56 - - [15/Apr/2016:00:15:24 -0700] "CONNECT www.paypal.com/path to webroot/index.php HTTP/1.0" 500 73823 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1644984 ****

93.100.101.160 - - [15/Apr/2016:06:00:17 -0700] "CONNECT ya.ru/path to webroot/index.php HTTP/1.1" 302 426 "-" "Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1" 0 "x-httpd-php" "/path to webroot/index.php" 376031 ****
87.119.247.252 - - [15/Apr/2016:05:17:30 -0700] "CONNECT ya.ru/path to webroot/index.php HTTP/1.0" 500 73823 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 2207859 ****

176.195.40.56 - - [15/Apr/2016:01:23:15 -0700] "CONNECT api-m.paypal.com/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 2190351 ****

87.252.225.41 - - [16/Apr/2016:08:21:41 -0700] "CONNECT www.twitch.tv/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 397796 ****

128.69.97.29 - - [16/Apr/2016:08:45:02 -0700] "CONNECT www.netflix.com/path to webroot/index.php HTTP/1.1" 302 426 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 608204 ****

94.244.33.11 - - [15/Apr/2016:11:19:57 -0700] "CONNECT activate.ea.com/path to webroot/index.php HTTP/1.0" 500 73823 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1366848 ****

176.96.82.165 - - [16/Apr/2016:03:42:31 -0700] "CONNECT www.kopikot.ru/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 660906 ****

188.95.104.14 - - [16/Apr/2016:04:00:14 -0700] "CONNECT www.avito.ru/path to webroot/index.php HTTP/1.1" 200 81214 "-" "Java/1.8.0_66" 0 "x-httpd-php" "/path to webroot/index.php" 2039708 ****

178.121.197.176 - - [15/Apr/2016:08:00:27 -0700] "CONNECT www.google.ru/path to webroot/index.php HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1" 0 "x-httpd-php" "/path to webroot/index.php" 1133417 ****

188.95.104.14 - - [16/Apr/2016:05:11:34 -0700] "CONNECT oauth.vk.com/path to webroot/index.php HTTP/1.1" 200 81037 "-" "Java/1.8.0_66" 0 "x-httpd-php" "/path to webroot/index.php" 2273679 ****

176.15.193.118 - - [15/Apr/2016:22:43:50 -0700] "CONNECT login.skype.com/path to webroot/index.php HTTP/1.0" 200 81242 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1437740 ****

5.44.4.8 - - [14/Apr/2016:13:24:56 -0700] "CONNECT account.sonyentertainmentnetwork.com/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 575359 ****

46.98.169.16 - - [14/Apr/2016:13:09:31 -0700] "CONNECT fancy.com/path to webroot/index.php HTTP/1.0" 200 81122 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1250644 ****

188.244.199.108 - - [14/Apr/2016:02:45:06 -0700] "CONNECT signin.ebay.com/path to webroot/index.php HTTP/1.0" 200 81150 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1581852 ****

188.162.166.43 - - [14/Apr/2016:14:00:00 -0700] "CONNECT letyshops.ru/path to webroot/index.php HTTP/1.0" 500 74111 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1432691 ****

79.171.122.226 - - [16/Apr/2016:11:01:37 -0700] "CONNECT api2.4game.com/path to webroot/index.php HTTP/1.0" 302 445 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 312622 ****

31.43.241.118 - - [15/Apr/2016:00:15:14 -0700] "CONNECT shorte.st/path to webroot/index.php HTTP/1.0" 200 81341 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 2214340 ****

87.243.54.249 - - [16/Apr/2016:13:11:46 -0700] "CONNECT api.paypal.com/path to webroot/index.php HTTP/1.1" 200 0 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1488044 ****

46.172.80.45 - - [15/Apr/2016:10:09:05 -0700] "HEAD www.tinydeal.com/path to webroot/index.php HTTP/1.1" 302 406 "-" "Mozilla/3.0 (compatible; Indy Library)" 0 "x-httpd-php" "/path to webroot/index.php" 668924 ****

164.132.106.226 - - [15/Apr/2016:18:57:01 -0700] "GET 37.139.18.175/path to webroot/fast.php??main_page=.errordocs/404 HTTP/1.1" 302 444 "-" "Mozilla/3.0 (compatible; Magic tester)" 0 "x-httpd-php" "/path to webroot/index.php" 747445 ****
31.173.100.69 - - [15/Apr/2016:07:46:22 -0700] "GET 52.16.144.194/path to webroot/login.php??main_page=.errordocs/404 HTTP/1.1" 404 363 "-" "Mozilla/3.0 (compatible; Indy Library)" 0 "x-httpd-php" "/path to webroot/index.php" 1146151 ****

178.121.197.176 - - [16/Apr/2016:01:13:41 -0700] "GET www.google.com/path to webroot/index.php HTTP/1.1" 200 81111 "-" "Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.1)" 0 "x-httpd-php" "/path to webroot/index.php" 1240742 ****
95.154.71.206 - - [15/Apr/2016:05:15:47 -0700] "GET www.google.com/path to webroot/index.php HTTP/1.1" 500 46720 "-" "Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.1)" 0 "x-httpd-php" "/path to webroot/index.php" 2305866 ****

83.142.111.172 - - [15/Apr/2016:14:15:02 -0700] "GET httpbin.org/path to webroot/ip??main_page=.errordocs/404 HTTP/1.1" 302 511 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0" 0 "-" "/path to webroot/index.php" 542389 ****
37.110.150.205 - - [15/Apr/2016:14:00:02 -0700] "GET httpbin.org/path to webroot/ip??main_page=.errordocs/404 HTTP/1.1" 404 18832 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0" 0 "-" "/path to webroot/index.php" 1133980 ****

5.13.28.185 - - [16/Apr/2016:10:54:26 -0700] "GET video-edge-8361dc.sfo01.hls.ttvnw.net/path to webroot/hls-855c40/dplayea_20842499200_437321552/chunked/index-live.m3u8??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "-" 0 "-" "/path to webroot/index.php" 457046 ****
5.13.28.185 - - [16/Apr/2016:11:12:17 -0700] "GET video22.lhr02.hls.ttvnw.net/path to webroot/hls-855c40/dplayea_20842499200_437321552/chunked/index-live.m3u8??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "-" 0 "-" "/path to webroot/index.php" 360982 ****
5.13.28.185 - - [15/Apr/2016:00:07:00 -0700] "GET video36.lhr02.hls.ttvnw.net/path to webroot/hls-8558b4/cellawella_20814788096_436419488/chunked/index-live.m3u8??main_page=.errordocs/404 HTTP/1.1" 404 118492 "-" "-" 0 "-" "/path to webroot/index.php" 1360962 ****

95.133.54.237 - - [16/Apr/2016:18:52:37 -0700] "GET www.liex.ru/path to webroot/userAction??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" 0 "-" "/path to webroot/index.php" 694217 ****
95.133.59.155 - - [16/Apr/2016:15:46:05 -0700] "GET www.liex.ru/path to webroot/userAction??main_page=.errordocs/404 HTTP/1.1" 404 118492 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" 0 "-" "/path to webroot/index.php" 1773899 ****

106.184.3.122 - - [16/Apr/2016:00:03:43 -0700] "GET www.ipip.net/path to webroot/index.php HTTP/1.1" 500 47784 "-" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)" 0 "x-httpd-php" "/path to webroot/index.php" 2833683 ****

151.80.44.159 - - [16/Apr/2016:01:49:31 -0700] "GET www.##########.com/path to webroot/index.php HTTP/1.1" 302 481 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" 0 "x-httpd-php" "/path to webroot/index.php" 523839 ****

46.161.9.16 - - [15/Apr/2016:05:32:14 -0700] "GET 100pages.top/path to webroot/pp/anp.php??main_page=.errordocs/403 HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.1) Gecko/20100101 Firefox/26.0" 0 "-" "/path to webroot/index.php" 355434 ****

123.59.59.52 - - [16/Apr/2016:00:46:26 -0700] "GET www.ctrip.com/ HTTP/1.1" 401 675 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0" 0 "-" "/path to webroot/" 257155 ****

88.87.85.180 - - [16/Apr/2016:02:38:46 -0700] "GET vtgtvolgograd.ru/path to webroot/news1096.php??main_page=.errordocs/404 HTTP/1.1" 404 118422 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 0 "x-httpd-php" "/path to webroot/index.php" 958429 ****

77.35.160.85 - - [16/Apr/2016:06:27:02 -0700] "GET orcahub.com/path to webroot/proxy-lists/googleproxies.txt??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 0 "-" "/path to webroot/index.php" 289632 ****

91.244.113.103 - - [15/Apr/2016:11:00:06 -0700] "GET impuls.name/path to webroot/pgpro/getheaders6.php??main_page=.errordocs/404 HTTP/1.1" 404 118648 "-" "Proxy Gear Pro/2.1 (Windows; N; Windows NT 10.; en)" 0 "-" "/path to webroot/index.php" 1230871 ****

109.191.224.164 - - [16/Apr/2016:11:00:37 -0700] "GET dreamcash.tl/path to webroot/ajax/??main_page=.errordocs/404 HTTP/1.1" 302 336 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36" 1 "-" "/path to webroot/index.php" 337011 ****

109.191.224.164 - - [16/Apr/2016:11:58:48 -0700] "GET likesrock.com/path to webroot/ajax.php??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" 0 "x-httpd-php" "/path to webroot/index.php" 449092 ****

109.191.224.164 - - [16/Apr/2016:12:33:14 -0700] "GET contentmonster.ru/path to webroot/order??main_page=.errordocs/404 HTTP/1.1" 302 336 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0" 1 "-" "/path to webroot/index.php" 318393 ****

46.174.241.166 - - [15/Apr/2016:19:55:05 -0700] "GET auth.mail.ru/path to webroot/cgi-bin/auth??main_page=.errordocs/403 HTTP/1.0" 404 118398 "-" "mobmail android 2.1.3" 0 "-" "/path to webroot/index.php" 1259557 ****

128.69.97.29 - - [15/Apr/2016:00:43:48 -0700] "GET chernovik.net/path to webroot/index.php HTTP/1.1" 302 511 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0" 0 "x-httpd-php" "/path to webroot/index.php" 323938 ****

5.13.28.185 - - [15/Apr/2016:00:46:40 -0700] "GET www.myip.ch/path to webroot/index.php HTTP/1.1" 200 81550 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 1586214 ****

37.229.62.39 - - [15/Apr/2016:11:30:12 -0700] "GET www.ya.ru/path to webroot/index.php HTTP/1.1" 200 14837 "-" "-" 0 "x-httpd-php" "/path to webroot/index.php" 2089602 ****

5.178.86.78 - - [15/Apr/2016:12:30:53 -0700] "GET check.best-proxies.ru/path to webroot/azenv.php??main_page=.errordocs/404 HTTP/1.1" 404 118361 "http://best-proxies.ru/" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)" 0 "x-httpd-php" "/path to webroot/index.php" 1016242 ****

109.188.127.20 - - [15/Apr/2016:12:40:24 -0700] "GET www.amazon.com/path to webroot/index.php HTTP/1.1" 500 46240 "-" "Mozilla/4.0 (compatible; Synapse)" 0 "x-httpd-php" "/path to webroot/index.php" 2562155 ****

95.105.99.162 - - [15/Apr/2016:13:00:45 -0700] "GET m.mamba.ru/path to webroot/index.php HTTP/1.1" 200 14772 "-" "IE 5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.3.18)" 0 "x-httpd-php" "/path to webroot/index.php" 784751 ****

176.106.22.200 - - [15/Apr/2016:14:12:39 -0700] "GET www.example.com/path to webroot/index.php HTTP/1.1" 200 81432 "-" "Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1" 0 "x-httpd-php" "/path to webroot/index.php" 1900330 ****

46.101.167.103 - - [15/Apr/2016:21:32:42 -0700] "GET lomaka.org.ua/path to webroot/t.txt??main_page=.errordocs/404 HTTP/1.1" 404 18800 "-" "Go-http-client/1.1" 0 "-" "/path to webroot/index.php" 1397027 ****

77.35.160.85 - - [15/Apr/2016:21:40:42 -0700] "GET orcahub.com/path to webroot/proxy-lists/googleproxies.txt??main_page=.errordocs/404 HTTP/1.1" 404 118522 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 0 "-" "/path to webroot/index.php" 1362745 ****

185.35.101.73 - - [15/Apr/2016:23:32:57 -0700] "GET drako.ru/path to webroot/index.php HTTP/1.1" 302 425 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 0 "x-httpd-php" "/path to webroot/index.php" 402449 ****

77.35.160.85 - - [15/Apr/2016:23:34:52 -0700] "GET orcahub.com/path to webroot/proxy-lists/googleproxies.txt??main_page=.errordocs/404 HTTP/1.1" 302 425 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 0 "-" "/path to webroot/index.php" 312436 ****

95.30.4.222 - - [14/Apr/2016:02:59:07 -0700] "GET www.gms-club2.com/path to webroot/index.php HTTP/1.1" 200 81409 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 0 "x-httpd-php" "/path to webroot/index.php" 1580409 ****
19 Apr 2016, 10:19 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: who's online page shows weird URL containing other sites' domain name

I agree: this is not a problem with whos_online.

The traffic you're getting is attempting to do unexpected things.

One thing you missed in your assessment of log entries:

You said: ```
here is hacker IP*...* - - [here is visiting time] "CONNECT prospero.ru/path to webroot/index.php HTTP/1.0" [B]302[/B] 445 "-" "-" 0 "x-httpd-php" "/hosting path to webroot/index.php" **** ****

The 445 there is the "size of the response, in bytes". In the case of a PHP script or HTML file, it's the number of bytes sent to build the page. For an image, it's the size of the image file. 

More interesting there is the 302, which is the HTTP Response from Apache.
Normal responses are 200 -- which means the request was accepted, and your store then proceeded with trying to process the requested page.
But other responses indicate errors or redirects, and won't show up in Zen Cart or whos-online.
301 and 302 = redirect ... so it got redirected to a different URL
403 = forbidden - so Apache said no
404 = not found - Apache said it doesn't know how to answer because it's not pointing to a valid file
500 = an internal error occurred, or a security rule was triggered, so nothing was given back in response.

So the 403, 404, 500 responses typically indicate unauthorized visitor requests (or they point out errors on your site or potential problems worth fixing).
20 Apr 2016, 7:26 PM
#9
fast8 avatar

fast8

New Zenner

Join Date:
Sep 2015
Posts:
8
Plugin Contributions:
0

Re: who's online page shows weird URL containing other sites' domain name

I'm so grateful for Drbyte's fast answer, sure I will buy Zen cart team a cup of coffee, to show my respect for your precious time and attention.

After one day's googling the web I came to understand the access log and the cracker's purpose, but I still have not implemented the .htaccess method which I found on the web, please zen cart experts' here give me your precious opinions! (I only have access to .htaccess, no access to httpd.conf); also I'm still not sure whether my server is an open proxy server or not, what settings should I request my server company to check, so I can come a conclusion.

This article stated this problem very clearly.
https://wiki.apache.org/httpd/ProxyAbuse

what are the hacker are trying to do? what do these access logs means?

These external/foreign domain name indicates that hackers/crackers are probing sites for open proxy servers, so they can use it to browse/abuse other sites.

http://security.stackexchange.com/questions/41078/url-from-another-domain-in-my-access-log

Here this people also got weird URLs in his access log:

95.47.119.124 - - [19/Aug/2013:11:30:31 +0000] "GET http://server7.cyberpods.net/azenv.php HTTP/1.1" 404 3080 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28 (.NET CLR 3.5.30729)"
223.220.68.129 - - [21/Aug/2013:00:55:46 +0000] "GET http://www.##########.com/ HTTP/1.1" 404 3080 "http://www.##########.com/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"

Fortunately in this case the server fed back 404 page not found response, so this server is correctly configured and safe.

http://serverfault.com/questions/622334/apache-server-access-log-shows-another-domains-request-and-got-redirected

This people also got other domain' requests, but his server fed back 301 response, because he had mod_rewrite module enabled and is using .htaccess redirecting other things.

http://serverfault.com/questions/149982/why-are-external-domains-appearing-in-my-apache-logs

This people got external domain names in his access logs, and here the expert said "being a public proxy without realising are quite slim, especially if you're serving your website directly from your server without any proxying at all."

How external domain name got into access logs?

http://serverfault.com/questions/149982/why-are-external-domains-appearing-in-my-apache-logs

"Anyone can connect to a webserver and request any url they wish from any host. It'll then turn up in your log. this example will get you an entry in your apache log for www.asdfasdfasdfsdafsdf.com"

$ nc www.whateveryourdomainishere.com 80
GET / HTTP/1.1
host: www.asdfasdfasdfsdafsdf.com

are these entries safe? should I worry about this?

In my case I got all kinds of HTTP response: 200, 302, 401, 404, 500.

401/404/500 should be safe; for 302 I didn't find an answer; but for 200 it is more complicated:

normally, as long as the proxy is disabled, Apache would respond to such requests with status code 405 (Method not allowed). The fact that a success 200 status code is returned indicates that a third-party module is processing the CONNECT requests. The most likely culprit is php, which in its default configuration will accept all methods and treat them identically.

That 200 status code indicates that Apache successfully sent a response to the client, but not necessarily that the response was retrieved from the foreign website. Even when proxying is turned off, Apache will accept requests that look like proxy requests and serve the homepage content from your default (virtual) host, since the hostname probably doesn't match a name for your site.

The size of the response can be compared to your homepage to confirm that the response was served locally and no proxying was involved.

https://wiki.apache.org/httpd/ProxyAbuse

what we can do to stop this?

  1. block these proxies requests in .htaccess (I have not implemented it yet, I'd like hear opinions here)

https://www.webmasterworld.com/forum92/4406.htm

# BLOCK attempts to use our server as a proxy, but allow absolute URIs
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /?http:// [NC]
RewriteCond %{THE_REQUEST} !^[A-Z]+\ /?http://([^.]+\.)?yourdomain\.com
RewriteRule .* - [F]

for https sites (If I understand correct there):

# BLOCK attempts to use our server as a proxy, but allow absolute URIs
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /?https?:// [NC]
RewriteCond %{THE_REQUEST} !^[A-Z]+\ /?https?://([^.]+\.)?yourdomain\.com
RewriteRule .* - [F]
  1. We can disable proxy in Apache by disabling proxying altogether by using the --disable-proxy option when building Apache, or by ensuring that the -D PROXY option is not used when starting Apache,

http://www.tuxradar.com/answers/362

  1. block or drop these IP addresses with iptables

http://www.tuxradar.com/answers/362

  1. disable mod_proxy by commenting out its LoadModule line or setting ProxyRequests off in httpd.conf. Remember that disabling ProxyRequests does not prevent you from using a reverse proxy with the ProxyPass directive.
    http://www.tuxradar.com/answers/362

  2. if you don't want your server response to requests for random hostnames, deny them this way:
    https://wiki.apache.org/httpd/ProxyAbuse

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName default.only
  <Location />
    Order allow,deny
    Deny from all
  </Location>
</VirtualHost>

<VirtualHost *:80>
  ServerName realhost1.example.com
  ServerAlias alias1.example.com alias2.example.com
  DocumentRoot /path/to/site1
</VirtualHost>
  1. if you want to drop these requests and send no response, install third party module mod_security
    https://wiki.apache.org/httpd/ProxyAbuse

how to prove that the open proxy function has been disabled on server?

  1. Configure your browser to use your web server as its default proxy server and then try to request foreign sites. You should get only your own website content back in reply.

  2. Manually construct requests using telnet, then press enter twice. If your server is properly configured, you should receive content from your own site and not Yahoo

telnet yoursite.example.com 80
GET http://www.yahoo.com/ HTTP/1.1
Host: www.yahoo.com
  1. If the size of the returned page is always the same, irrespective of the URL requested, Apache is returning a local page - probably an error message from the small size. You should be able to tell from the IP addresses and frequency of these log entries whether this is a single, misconfigured computer or scripted attempts to find suitable servers to exploit.
    http://www.tuxradar.com/answers/362
20 Apr 2016, 7:57 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: who's online page shows weird URL containing other sites' domain name

These are not issues with Zen Cart.

Best to ask these questions to your hosting company. They're experts regarding their server configuration.