Last active
October 30, 2025 08:22
-
-
Save LouisdeLooze/2769715baf3443756e0c6e0aaf5dd57b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # deployed by ewings-tools | |
| # The known malware SessionReaper (CVE-2025-54236) places a malicious file to the upload endpoints of address_file_upload and customer_file_upload. | |
| # To prevent exploitation of this behavior, we block access to these endpoints. | |
| location ~* /(address/)?(address|customer)_file(/|_)upload/? { | |
| return 403; | |
| } | |
| location ~* /customer(_custom_attributes)?/(address|customer)_file(/|_)upload/? { | |
| return 403; | |
| } | |
| # We additionally block access to any uploaded files in these sess files, to be extra safe. | |
| # Block all requests starting with media/customer_address/s/e/sess_ | |
| location ~* /media/customer_address/s/e/sess_ { | |
| return 403; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment