Added functionality to Kunato WAF to block Apache/Nginx default pages and file listings
I added a feature to my custom WAF to block Apache/Nginx default pages and file listings.
https://github.com/hiroeorz/kunato
The implementation this time is a protective measure for servers that use Apache/Nginx by default.
When using the default settings, various information appears on the top page, making versions visible, and it is judged as having weak security, making it an easy target for attacks.
Also, such web servers may return a list of files in the directory for requests without specifying a filename (e.g., https://example.com/files/).
While modifying the default settings and properly configuring the server is the best approach, I added this feature to block these requests with the WAF.
The key point is to scan the server’s response rather than the client’s request, and return a 403 when matching specific characters.
This type of attack cannot be distinguished from normal requests, so I decided to scan the response side.
Comments
No comments yet.