You are not logged in.
I have doubts about the security of the current version of apache
I started the apache + php74 server and after a while some scanner did this:
45.95.169.240 - root [11/May/2023:11:58:18 +0300] "GET / HTTP/1.1" 200 13671
45.95.169.240 - root [11/May/2023:11:58:31 +0300] "POST /dvr/cmd HTTP/1.1" 403 -
45.95.169.240 - root [11/May/2023:11:58:43 +0300] "POST /cn/cmd HTTP/1.1" 403 -
Here you can see that the request was made as root, although I run the server as a regular user. Soatl requests look like this:
127.0.0.1 - - [11/May/2023:12:49:35 +0300] "POST / HTTP/1.1" 403 -
I searched on the Internet and did not find anything about this, in the entire history of accessing the server from the outside there were no more such cases.
My httpd.conf: https://hastebin.com/share/iwefecuqez.bash
Offline
# id user
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
# id user
And? Answer on a normal explain why "- root" and not "- -"
Last edited by furger (2023-05-11 15:19:46)
Offline
Not sure what your gibberish is meant to say, but I'm pretty sure shard was interested in the output because of
User user
Group user
Offline
Before you start to panic please understand what you actually see there. According to your httpd configuration the format of this log is "%h %l %u %t \"%r\" %>s %b". So "root" comes from the "%u" field. Let's look this up in Custom Log Formats (emphasis mine): "Remote user if the request was authenticated. May be bogus if return status (%s) is 401 (unauthorized).".
Do you understand what this means?
Beyond that, it looks as if you redacted the httpd configuration before posting it (or are you actually running httpd under a user account named "user"? ), and you also didn't include any of the includes, so it's impossible to say where said requests end up and where they get rejected or accepted.
Last edited by 3beb6e7c46a615a (2023-05-12 05:35:49)
Offline