Skip to content

Commit c4d5c88

Browse files
committed
Add 91.223.167.117-2017-12-27a/ + contents and updated README.md for that.
1 parent 87e62c3 commit c4d5c88

6 files changed

+1768
-0
lines changed

91.223.167.117-2017-12-27a/91.223.167.117WkGUO-k3411Y64MGy-pOIQAAAAo.0.file

+313
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
2+
_SERVER
3+
Array
4+
(
5+
[UNIQUE_ID] => WkGUO-k3411Y64MGy-pOIQAAAAo
6+
[SCRIPT_URL] => /wp-content/themes/twentytwelve/apache2.php
7+
[SCRIPT_URI] => http://stratigery.com/wp-content/themes/twentytwelve/apache2.php
8+
[HTTP_CONNECTION] => Keep-Alive
9+
[CONTENT_TYPE] => multipart/form-data; boundary=--------122617031341835
10+
[CONTENT_LENGTH] => 34248
11+
[HTTP_HOST] => stratigery.com
12+
[HTTP_ACCEPT] => text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
13+
[HTTP_ACCEPT_LANGUAGE] => ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
14+
[HTTP_REFERER] => http://stratigery.com/wp-content/themes/twentytwelve/apache2.php
15+
[HTTP_USER_AGENT] => Opera/9.80 (Windows NT 6.1) Presto/2.12.388 Version/12.17
16+
[HTTP_COOKIE] => d8670190bc460b6abebf276d20db5892=63a9f0ea7bb98050796b649e85481845
17+
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/bin
18+
[SERVER_SIGNATURE] =>
19+
[SERVER_SOFTWARE] => Apache/2.4.29 (Unix) PHP/7.2.0
20+
[SERVER_NAME] => stratigery.com
21+
[SERVER_ADDR] => 162.246.45.144
22+
[SERVER_PORT] => 80
23+
[REMOTE_ADDR] => 91.223.167.117
24+
[DOCUMENT_ROOT] => /srv/http/stratigery/htdocs
25+
[REQUEST_SCHEME] => http
26+
[CONTEXT_PREFIX] =>
27+
[CONTEXT_DOCUMENT_ROOT] => /srv/http/stratigery/htdocs
28+
[SERVER_ADMIN] => [email protected]
29+
[SCRIPT_FILENAME] => /srv/http/stratigery/htdocs/fake_wp/wso.php
30+
[REMOTE_PORT] => 57824
31+
[GATEWAY_INTERFACE] => CGI/1.1
32+
[SERVER_PROTOCOL] => HTTP/1.1
33+
[REQUEST_METHOD] => POST
34+
[QUERY_STRING] =>
35+
[REQUEST_URI] => /wp-content/themes/twentytwelve/apache2.php
36+
[SCRIPT_NAME] => /wp-content/themes/twentytwelve/apache2.php
37+
[PHP_SELF] => /wp-content/themes/twentytwelve/apache2.php
38+
[REQUEST_TIME_FLOAT] => 1514247227.381
39+
[REQUEST_TIME] => 1514247227
40+
)
41+
42+
_REQUEST
43+
Array
44+
(
45+
[a] => FilesMan
46+
[c] => /var/www/html/.htaccess/
47+
[p1] => uploadFile
48+
[charset] => Windows-1251
49+
)
50+
51+
_COOKIE
52+
Array
53+
(
54+
[d8670190bc460b6abebf276d20db5892] => 63a9f0ea7bb98050796b649e85481845
55+
)
56+
57+
_FILES
58+
59+
UPLOADED FILE f
60+
Array
61+
(
62+
[name] => .htaccessPNB1PN
63+
[type] => application/octet-stream
64+
[tmp_name] => /tmp/phpkYY6Ni
65+
[error] => 0
66+
[size] => 33416
67+
)
68+
69+
END UPLOADED FILE f
70+
Uploaded file: /var/tmp/91.223.167.117WkGUO-k3411Y64MGy-pOIQAAAAo.0.file
71+
72+
END _FILES
73+
$my_blog=http://stratigery.com/wp-content/themes/twentytwelve
74+
Acting as WSO, login cookie.
75+
a = FilesMan
76+
c = /var/www/html/.htaccess/
77+
p1 = uploadFile
78+
Acting as WSO, receive uploaded file.
79+
Acting as WSO, send /var/www/html/ listing.

91.223.167.117-2017-12-27a/README.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# .htaccess mobile phone redirector
2+
3+
Redirect mobile phone browsers to some undesired URL
4+
5+
## Origin
6+
7+
### IP Address 91.223.167.117
8+
9+
Belongs in 91.223.167.0/24AS197615, NASZASIEC-NET in Poland.
10+
11+
`traceroute` agrees, hopping through hosts named 'naszasiec.ip4.epix.net.pl' and
12+
ending at 'ip-91-223-167-117.naszasiec.net'.
13+
14+
### Download
15+
16+
Downloaded to my WordPress honey pot's fake WSO web shell, via `FilesMan` action,
17+
`uploadFile` sub-action. The downloader was hoping to put a file `/var/www/html/.htaccess/.htaccessPNB1PN`
18+
in place.
19+
20+
## Decoding
21+
22+
1. Copy `*file` to `dc1.php`
23+
2. Run [tidy](https://github.com/htacg/tidy-html5) on, and hand edit `dc1.php` to fix HTML problems, yielding `f1.php`
24+
25+
## Analysis
26+
27+
Seems to put in place a `.htaccess` file that selectively redirects
28+
(via Apache `mod_rewrie`)
29+
mobile phone browser accesses of document root (`/var/www/html/`)
30+
for the WordPress
31+
Apache server
32+
to `http://googleads.g.doubleclick.cn.com/udoe19.html`
33+
34+
I got `ERROR 403: Forbidden` when I tried to access that URL using `wget`.
35+
The URL is clearly formed to trick the human eye.
36+
37+
The weird part is that it wants to leave in place the HTML
38+
generated by my fake WSO, to display if a non-mobile phone
39+
browser does the same access. I can't tell if the downloader
40+
is buggy, or it got confused by the fake WSO, or some other
41+
possibility.
42+
43+
Domain name `googleads.g.doubleclick.cn.com` resolves to 5.188.62.23,
44+
an IP address in 5.188.62.0/24as44050, assigned to some Ukrainian
45+
entity.

91.223.167.117-2017-12-27a/dc1.php

+379
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)