#5369 - Problems with IP banning

Identifier #5369
Issue type Major issue (breaks an entire feature)
Title Problems with IP banning
Status Completed
Handling member Chris Graham
Version 10.0.43
Addon securitylogging
Description A number of big problems exist within IP banning, for both negative and time-limited bans, particularly when Composr is able to write to the .htaccess file.

Negative bans are not preventing bans.
Negative bans are being written into .htaccess as positive bans, if it is writable.
Time-limited bans are not handled at all if the .htaccess is writable.
Wildcard bans are not detectable by Composr if the .htaccess is writable (so they work on the Apache level, but not recognised by Composr)
Internal caching for checking bans does not segment against different parameters for ban checks.

regressions came into the project when it was optimised to be able to store bans in this file, and perhaps after other changes. Added extensive testing to avoid problems in the future.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated