- Code: Select all
Mar 20 19:28:34 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.138 port 80 sock type dgram protocol udp by /usr/bin/php5-cgi[php-cgi:20185] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19891] uid/euid:33/33 gid/egid:33/33
Mar 20 19:28:34 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.139 port 80 sock type dgram protocol udp by /usr/bin/php5-cgi[php-cgi:20185] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19891] uid/euid:33/33 gid/egid:33/33
Mar 20 19:28:34 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.138 port 80 sock type stream protocol tcp by /usr/bin/php5-cgi[php-cgi:20185] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19891] uid/euid:33/33 gid/egid:33/33
Mar 20 19:28:34 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.139 port 80 sock type stream protocol tcp by /usr/bin/php5-cgi[php-cgi:20185] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19891] uid/euid:33/33 gid/egid:33/33
Mar 20 19:28:43 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.138 port 80 sock type dgram protocol udp by /usr/bin/php5-cgi[php-cgi:20468] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19693] uid/euid:33/33 gid/egid:33/33
Mar 20 19:28:43 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.139 port 80 sock type dgram protocol udp by /usr/bin/php5-cgi[php-cgi:20468] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19693] uid/euid:33/33 gid/egid:33/33
Mar 20 19:28:43 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.138 port 80 sock type stream protocol tcp by /usr/bin/php5-cgi[php-cgi:20468] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19693] uid/euid:33/33 gid/egid:33/33
Mar 20 19:28:43 data kernel: grsec: From 93.138.118.36: (virtual:G:/usr/bin/php5-cgi) denied connect() to 72.233.56.139 port 80 sock type stream protocol tcp by /usr/bin/php5-cgi[php-cgi:20468] uid/euid:36923/36923 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:19693] uid/euid:33/33 gid/egid:33/33
kernel is 2.6.32.57-grsec201202200919
i have rule which blocks most connections:
- Code: Select all
subject /usr/bin/php5-cgi AKCdT
[...]
bind disabled
connect 192.168.200.254/32:53 dgram udp
connect 192.168.200.254/32:53 stream tcp
#connect 72.233.56.128/25:80 stream tcp # wordpress.org
if I uncomment the tcp lime (commented out above), I still get udp "grsec denied" messages.
The machine in question (two of them actually, with different sites but similar error) has few wordpress sites (running on apache with suexec+php-cgi), who as far as I can tell from time to time seem to want to do a normal HTTP POST on api.wordpress.org, which looks like it boils down to doing PHP fsockopen() call. So there should be no udp/80 connections, only tcp/80 ones.
I've also noticed I get a few other strange errors, like
- Code: Select all
grsec: From 66.249.66.228: (virtual:G:/usr/bin/php5-cgi) denied connect() to 0.0.0.0 port 0 sock type dgram protocol udp by /usr/bin/php5-cgi[php-cgi:16382] uid/euid:36334/36334 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:13691] uid/euid:33/33 gid/egid:33/33
grsec: From 88.207.10.227: (virtual:G:/usr/bin/php5-cgi) denied connect() to 173.194.35.144 port 0 sock type dgram protocol udp by /usr/bin/php5-cgi[php-cgi:12527] uid/euid:36334/36334 gid/egid:1000/1000, parent /usr/lib/apache2/mpm-prefork/apache2[apache2:10382] uid/euid:33/33 gid/egid:33/33
Now, I don't think udp/0 is normally allowed port anyway... Anyway I've looked over and the sites in question do not seem to be cracked. Any ideas about what may be the problem? I tried allowing them through grsec, but only udp packets that tcpdump sees are standard udp/53 DNS and my udp/514 remote syslog and udp/161 snmp queries, none of this 0.0.0.0 udp/0 or udp/80 "ghost" stuff.
Is this a possible glitch in grsecurity patch?