Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save LouisdeLooze/2769715baf3443756e0c6e0aaf5dd57b to your computer and use it in GitHub Desktop.

Select an option

Save LouisdeLooze/2769715baf3443756e0c6e0aaf5dd57b to your computer and use it in GitHub Desktop.
# 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