| 1 | Scenario to detect exploitation attempts of [CVE-2022-39291](https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-cfcx-v52x-jh74). |
| 2 | Basically rate limit adding (POST) log entries using index.php. |
| 3 | |
| 4 | #### This is for ZM versions __BEFORE__ 1.36.27, 1.37.24 |
| 5 | |
| 6 | ``` |
| 7 | POST /zm/index.php HTTP/1.1 |
| 8 | Host: 10.0.10.107 |
| 9 | Content-Length: 256 |
| 10 | Accept: application/json, text/javascript, */*; q=0.01 |
| 11 | X-Requested-With: XMLHttpRequest |
| 12 | User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 |
| 13 | Content-Type: application/x-www-form-urlencoded; charset=UTF-8 |
| 14 | Origin: http://10.0.10.107 |
| 15 | Referer: http://10.0.10.107/zm/? |
| 16 | Content-Security-Policy: default-src 'self' data: *; connect-src 'self'; script-src 'self'; |
| 17 | Accept-Encoding: gzip, deflate |
| 18 | Accept-Language: en-US,en;q=0.9 |
| 19 | Cookie: zmSkin=classic; zmCSS=base; zmBandwidth=high; ZMSESSID=8o8h3mg4nv7pmmsu4tm13r1v4d |
| 20 | Connection: close |
| 21 | |
| 22 | __csrf_magic=key%3A85866fbcb6a1d7325544a55aa63fb534677f34ca%2C1665102411&view=request&request=log&task=create&level=ERR&message=Trenches%20of%20IT%20PoC&browser%5Bname%5D=Chrome&browser%5Bversion%5D=101.0.4951.41&browser%5Bplatform%5D=Windows&file=line=800 |
| 23 | ``` |
| 24 | |
| 25 | :warning: Crowdsec is not a WAF and, as such, bypass to those signatures are likely :warning: |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 |