# 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/(.*)โ€ โ€œ$1โ€; [P] 
ProxyPassReverse /here/

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.


# PoC Usage
python3 -h
usage: [-h] -url URL -url_path URL_PATH -backend_network BACKEND_NETWORK -backend_path BACKEND_PATH

Exploit for CVE-2023-25690

  -h, --help            show this help message and exit
  -url URL              Url for vulnerable site, example:
  -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