Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [apache]

Questions about the security of Apache open source software, especially Apache HTTP Server

0
votes
0answers
23 views

Best Practice: User config, folder and file rights for *nix web servers

What file and folder rights do you suggest for a maximum secure *nix web server. Posts like this and this are not really answering this. Long story This may sound trivial, but it isn't, when I ...
2
votes
2answers
39 views

How do i know if my ubuntu apache version is secure?

I am running Ubuntu 16.04 LTS and checking dpkg -l apache2 gives me version 2.4.18-2ubuntu3.9. How do i know that 2ubuntu3.9 has the latest security patches listed here at https://httpd.apache.org/...
45
votes
5answers
12k views

Should I close port 80 forever and ever since the 2018 Google-indicated web-security initiatives?

I often establish Ubuntu-LAMP environments on which I host a few Drupal web applications that I myself own (I don't provide any hosting services and never done so in the past). Whenever I establish ...
2
votes
1answer
43 views

Containerization vs. Chroot in shared hosting

Forgive my rudimentary understanding of server security, but one thing I've always struggled with was understanding how to setup chroot to separate folders (which are discrete WP installations) in a /...
0
votes
0answers
51 views

When a web interface requires username/password authentication, is ability to execute commands as root via www-data a big security risk?

I want to create a web interface to run some software on a small Raspberry Pi computer. This will be similar to logging in to your router from your browser. The web interface will be have a dashboard ...
0
votes
0answers
31 views

Spoof my NAT IP as local address on server side

I'm working on a Hack the Box challenge (Grammar - Web challenge) where I have to bypass a 403 page. The site is using Apache 2.4 and I have already checked the CVEs relating to this version with no ...
0
votes
1answer
42 views

AWS Load Balancer Response Header Apache Server Disclosure

I have a node.js environment deployed using AWS Elastic Beanstalk on an Apache server. I have run a PCI scan on the environment and I'm getting 2 failures: Apache ServerTokens Information Disclosure ...
0
votes
1answer
33 views

NGINX 444 response equivalent for Apache server

How can I configure Apache HTTPD server to send no response and close connection in case of DDoS or malicious request
0
votes
1answer
81 views

In apache, why www-data owner of a web application directory is safer than recursive 777?

I have ubuntu 16.04 LTS and I am running my php web application through Apache (php-fpm). I am little concerned about files and directory permissions. Many links are suggesting that I should keep ...
1
vote
0answers
46 views

SSL Certificates and Private Key passhprases

I'm trying to put together a new PKI program for my company, and I'm a little turned around on the concept of Private Keys and passphrases. We'd like to implement Microsoft Active Directory ...
0
votes
0answers
50 views

Input sanitization: Pitfalls in rolling your own - securing DSLs

Pretext I'm in the middle of deploying Apache Solr as a search backend. Solr is using its own query language, for an example: search(s2, q=author:"user_str", fl="id,title,authors", sort="id asc", qt=...
2
votes
2answers
90 views

Is it okay to have your SSL cert showing when server is reached by IP?

I've been doing some research into SSL for a paper for school, so please forgive my ignorance and lack of experience in this subject. While doing my research I have noticed that some websites when you ...
0
votes
1answer
77 views

Apache2 Logs, need help in identifying if it is an attack or not

Are this an example of an attack that had happened to my server? This happened few days before I checked the logs... I checked the logs to see if something was wrong since my server suddenly uses all ...
0
votes
0answers
32 views

Apache 2.4.10 child process hang

We're running a auto-scaling instance group in Google Cloud Compute Engine (Debian 8, Apache 2.4.10) and discover that Apache's child processes are not closing properly (apparently they keep open ...
0
votes
1answer
130 views

Cookie Operations using Modsecurity Rules

Here, I'm trying to accomplish calling a Lua script from modsecurity rules. There are 2 components:- 1.example.com (WAF) 2.test.com (Web Application) test.com contains pages:- index.php ...
1
vote
2answers
258 views

Server Side request forgery (SSRF) explanation

I am looking to gain a better understanding of the SSRF vulnerability. I have googled and watched YouTube tutorials but they all show advanced techniques that are difficult to understand. I am ...
0
votes
1answer
469 views

Understanding SSL Cipher suite in Apache

On reading the documentation Apache documentation. A cipher suite example has been given : RC4-SHA:AES128-SHA:HIGH:MEDIUM:!aNULL:!MD5 I have understood the explanation given by them. My question is ...
1
vote
2answers
70 views

apache http https redirect server still listenting on port 80

I have an application that is using Apache. I have install the mod_ssl module for Apache, configured an SSL certificate and because the application provides such function configured http to https ...
1
vote
1answer
448 views

X-Frame-Options header on redirect

I have several web applications running on my server (Debian 8 running Apache). One of my customers wants to improve the security of his app, after having some security audits carried out by a third-...
2
votes
1answer
112 views

ModSecurity Rule 973338

ModSecurity blocked access due to the following: [msg "XSS Filter - Category 3: Javascript URI Vector"] [data "Matched Data: esrco found within ARGS:as_email:hearsesesrcool@yahoo.com"] [...
2
votes
1answer
250 views

JBoss Web vulnerabilities [duplicate]

In my organization I found servers running JBoss Web/7.0.13.Final and JBoss Web/7.0.12.Final. I could not find security vulnerabilities for this server's versions, but they seem old to me. How can I ...
1
vote
0answers
62 views

How to deny execution of any file on a specific directory?

I built a form that lets the user to upload files to a specific directory (apache2, php). I already limited file type and did some other security things. But I would anyway also like to deny the ...
4
votes
1answer
77 views

What are the risks of mismanaging apache users/permissions and what is the right way to do it?

Every time I install Apache to test a script, this question comes up for me. I don't do it very often, but I remember this being a pain point since about 2007. A lot of tutorials/forums recommend ...
0
votes
0answers
65 views

Do NGINX/Apache allow URI (http/ldap) based CRL (revocation list)?

my client certificate provider has a low "validity" period for CRLs, which is of 7 days. AFAIK, that means that I will need to update the CRL file on my web server every 6 days if I want it to work, ...
0
votes
0answers
49 views

Browser Suddenly gets kicked out of client certificate authenticated site on Apache Windows Environment

I have a website in our development environment "Windows / Apache 2.4 server" that has client certificate authentication. When you initially visit the site, it works ok. Since I have multiple client ...
2
votes
1answer
49 views

Storing Apache logs in docroot

I have a client who hosts multiple sites in Apache. They're storing each site's access.log and error.log in the docroot under logs/, and they're publicly accessible via the web. To me, this seems ...
0
votes
0answers
44 views

What is going on with these requests? HEAD with encoded backslash, and my site embedded in the url

I found these entries in my access log, and I found them rather weird. As I don't know what HEAD's purpose is here or what their intent was with this. I have the first couple as an example, but it's ...
3
votes
1answer
722 views

How do I decode this hacker payload?

A hacker submitted this via apache $_SERVER["HTTP_IF"]: http://localhost/aaaaaaa潨硣睡焳椶䝲稹䭷佰畓穏䡨噣浔桅㥓偬啧杣㍤䘰硅楒吱䱘橑牁䈱瀵塐㙤汇㔹呪倴呃睒偡㈲测水㉇扁㝍兡塢䝳剐㙰畄桪㍴乊硫䥶乳䱪坺潱塊㈰㝮䭉前䡣潌畖畵景癨䑍偰稶手敗畐橲穫睢癘扈攱ご汹偊呢倳㕷橷䅄㌴...
0
votes
0answers
81 views

Accessing MySQL DB from Java App or Apache Kafka and NiFi

I am wondering, what is more secure to access a database in MySQL: directly via Java application (DriverManager.getConnection) send information from Java App to Apache Kafka, then read it out in ...
3
votes
0answers
96 views

Is setting the Apache's TimeOut directive to 3 hours risky?

In my application there are couple of PHP scripts that need about 2-3 hours to be executed by requests from the application admins. I failed to change the Apache TimeOut directive limit only for these ...
0
votes
1answer
131 views

Getting a suspicious error in apache error.log (DJANGO)

Using django, I get the following error showing up in my apache errorlog: Invalid HTTP_HOST header: 'kyortisdzheykob.ru'. You may need to add u'kyortisdzheykob.ru' to ALLOWED_HOSTS. But I do not ...
1
vote
0answers
57 views

What are the security implications of publishing my web server & PHP config files?

I have a web server with many virtual hosts, config files, etc. I'd like to track all of my web server & PHP config files using Git and have them hosted on a public GitHub repository, as this ...
0
votes
1answer
330 views

Is there any way to bypass .htaccess PATH restriction (in URLs)?

We use .htaccess to deny direct access to specific file example.com/myfile.txt, by using this configuration: RewriteEngine on RewriteCond %{THE_REQUEST} myfile.txt RewriteRule ^ - [F,L] The ...
1
vote
1answer
850 views

How can I use phpinfo.php file to find new files on a server

I have been given a server to hack into for a cyber security class I have taken. After using dirb to look at the file structure, the only accessible file was the phpinfo.php file. I need to use this ...
0
votes
1answer
885 views

How to block proxy servers to access HTTPS based sites [duplicate]

Is there any way to stop/block proxy servers to access https based sites ?. As I have enabled mod_geoip to allow certain countries traffic, to access our critical websites, but still open web ...
2
votes
1answer
270 views

SSL - Enabling Forward Secrecy with or without RC4

I'm running an Apache 2 server with Ubuntu 16. Here's my current configuration: SSLProtocol All -SSLv2 -SSLv3 SSLHonorCipherOrder on SSLCipherSuite I'm a bit confused as to what I should use for ...
0
votes
2answers
72 views

Is securing Apache with SSL certificates enough to protect all of the underlying applications? [duplicate]

I have a few applications that serve HTTP content on localhost. I have installed apache and configured reverse proxy so that apache routes all the traffic to the underlying applications based on URL ...
0
votes
1answer
68 views

Getting a PHISH/Zmate.omna detection by Avira when I refresh my page, but online website scanners are showing that the page is clean

I'm getting a PHISH/Zmate.omna detection by Avira when I refresh my page, showing that it was put in the chrome cache. But I tried several online website/url scanners, and they are all showing that ...
2
votes
1answer
101 views

How to prevent hackers from accessing .htpasswd & ssl protected areas? [closed]

In spite of precautions, hackers got files of mine. I have a password protected area on my server. I am using AuthType Basic AuthName "Title" AuthUserFile /var/www/vhosts.../.htpasswd Require valid-...
0
votes
2answers
161 views

Can ModSecurity defend from Brute Force Attacks on PHPmyadmin and WordPress as well?

Can the software ModSecurity defend from Brute Force Attacks on PHPmyadmin and WordPress as well? A particular hosting company providing shared hosting told me that ModSecurity should cover ...
-1
votes
2answers
1k views

How to bypass .htaccess protection? [closed]

Is there any way to bypass a directory that protected by .htaccess file? I played a challenge in CTF and I could not access the path where the flag is. I tried to access http://www.example.com/flag ...
1
vote
1answer
267 views

Apache logs show commands execution

I am wondering if my server is compromised or not. I just looked at my log and seen the following line in there: IP: 173.249.4.160, Date: 27-12-17, Time:09:52:51, Browser: () { :;}; /bin/bash -c "...
8
votes
1answer
809 views

Malformed HTTP requests with repeated protocol (GET /https://https://www.DOMAIN.com) in Apache logs - what vulnerability are they scanning for?

About once per day, I'm seeing the following series of requests in my Apache 2.4 httpd logs, and I'm trying to figure out what vulnerability is being scanned for. Each occurrence of these scans has an ...
3
votes
1answer
343 views

Is mod_reqtimeout a sufficient and safe technique to mitigate Slow HTTP DoS Attacks?

We've been looking into configuring apache against the Slow HTTP DoS Attacks and stumbled upon this article, which goes over multiple techniques and apache configuration options. mod_reqtimeout ...
0
votes
0answers
33 views

HTTPS Inspection: how to detect at (own) server? / does it break Apache digest authentication? [duplicate]

I have 2 questions regarding HTTPS/TLS/SSL inspection/interception, which is widley used in company networks: How can I detect it at a server? At a client I can check the validator of the certificate....
0
votes
1answer
770 views

Should one use separate SSL certificates for front-end and back-end?

I have a website hosted by Apache on a Linux server. I also have a Node.js back-end/API that is hosted on the same server, which serves all the front-end's requests. Today I set up SSL for the front-...
4
votes
2answers
918 views

What is the best way to prevent code injection in Apache/PHP?

I have recently setup wordpress on a VPS, and it is under continuous attack since. I have taken some measures to protect from some bruteforce attacks, however looking at some of the logs I am not sure ...
0
votes
1answer
262 views

Directory listing for icons and image folders

I am testing web application on Apache server, which allows to list directories such as https://192.168.100.00:443/icons/ and https://192.168.100.00:443/images/. This directories contains only images. ...
1
vote
3answers
146 views

Serving a local debug apache site from home directory requires 755 perms on directory tree, is this safe on a single-user laptop?

I have a few simple web apps deployed on external providers. For testing and debugging I run local instances (on-demand basis, not all the time) on localhost:80 using apache. These are hosted ...
2
votes
1answer
73 views

Apache 2.4 log question

Documentation for Apache 2.4 states that: Anyone who can write to the directory where Apache httpd is writing a log file can almost certainly gain access to the uid that the server is started as, ...