Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-25581 — Python exploit script for CVE-2023-25581, achieving remote code execution via deserialization of Base64-encoded data in pac4j-core. | Kitploit
Tools/GitHubGitHub/p33d/cve-2023-25581
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingPayload Development
GitHubp33d/cve-2023-25581

CVE-2023-25581

Python exploit script for CVE-2023-25581, achieving remote code execution via deserialization of Base64-encoded data in pac4j-core.

View Repository
121 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

This Python script demonstrates the exploitation of the CVE-2023-25581 vulnerability in pac4j-core. The vulnerability allows an attacker to execute arbitrary code (RCE) by deserializing maliciously crafted Base64-encoded data. Prerequisites

Before running the script, make sure you have the following installed:

root@kitploit:~
Python 3.x: Download Python

requests library: Install it by running the command:

bash

pip install requests

Usage

root@kitploit:~
Clone the Repository:

Clone this repository to your local machine:

bash

git clone https://github.com/p33d/CVE-2023-25581 cd CVE-2023-25581

Run the Exploit Script:

To run the script, use the following command in your terminal:

bash

python3 Poc-CVE-2023-25581.py

Input the Target URL:

After running the script, you will be prompted to enter the target URL of the vulnerable application. For example:

bash

Enter the target URL (e.g., http://vulnerable-app.com/api/profile): http://vulnerable-app.com/api/profile

Payload Execution:

If the target is vulnerable, the script will send a payload and attempt to exploit the system. If successful, you may achieve remote code execution (RCE). The script will print the following message if the exploit is successful:

bash

Payload sent successfully! Check your terminal for RCE.

If the exploit fails or the target is not vulnerable, an error message will be displayed.

Download Tool