## https://sploitus.com/exploit?id=F607361B-6369-5DF5-9B29-E90FA29DC565
# CVE 2023 25690 Description
Some mod_proxy configurations on Apache HTTP Server versions 2.4.0 through 2.4.55 allow a HTTP Request Smuggling attack. Configurations are affected when mod_proxy is enabled along with some form of RewriteRule or ProxyPassMatch in which a non-specific pattern matches some portion of the user-supplied request-target (URL) data and is then re-inserted into the proxied request-target using variable substitution. For example, something like:
```
RewriteEngine em RewriteRule โ^/here/(.*)โ โhttp://example.com:8080/elsewhere?$1โ; [P]
ProxyPassReverse /here/ http://example.com:8080/
```
Request splitting/smuggling could result in bypass of access controls in the proxy server, proxying unintended URLs to existing origin servers, and cache poisoning. Users are recommended to update to at least version 2.4.56 of Apache HTTP Server.
Reference: https://ubuntu.com/security/CVE-2023-25690
# PoC Usage
```
python3 exploit.py -h
usage: exploit.py [-h] -url URL -url_path URL_PATH -backend_network BACKEND_NETWORK -backend_path BACKEND_PATH
Exploit for CVE-2023-25690
options:
-h, --help show this help message and exit
-url URL Url for vulnerable site, example: http://192.168.0.100:80
-url_path URL_PATH Url endpoint for vulnerable site, example: /path/endpoint
-backend_network BACKEND_NETWORK
Internal network you want to interact, example: localhost
-backend_path BACKEND_PATH
Internal endpoint you want to interact, example: /path/endpoint
```