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
Exploit_CVE-2023-27163 — Proof of Concept exploit for Server Side Request Forgery vulnerability in Requests Basket v1.2.1 and before. | Kitploit
Tools/GitHubGitHub/j0ey17/exploit_cve-2023-27163
ReconnaissancePort ScanningVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubj0ey17/exploit_cve-2023-27163

Exploit_CVE-2023-27163

Proof of Concept exploit for Server Side Request Forgery vulnerability in Requests Basket v1.2.1 and before.

View Repository
141 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

CVE-2023-27163 PoC Exploit Code

This Python script is a Proof of Concept (PoC) for CVE-2023-27163, a Server-Side Request Forgery (SSRF) vulnerability in Request Basket.

Code Description

The script automates the exploitation of CVE-2023-27163. It performs the following actions:

  1. Generates a random basket name: Creates a unique endpoint for interaction.
  2. Creates a basket and retrieves an API token: Interacts with the Request Basket API to set up a new basket and get the authorization token.
  3. Configures the basket for SSRF: Modifies the basket's configuration to forward incoming requests to an internal address (127.0.0.1) on a specified port.
  4. Attempts to access internal ports: It iterates through a predefined range of ports (75-81 by default), attempting to access services running on localhost of the vulnerable server via the configured basket.
  5. Displays results: If a service is found and returns a 200 OK status, it prints a message indicating the open port and the beginning of the response content.

This effectively allows an attacker to scan internal ports on the server hosting the vulnerable Request Basket instance.

Configuration for Usage

To adapt this script for your own use, you may need to modify the following:

  1. IP_Vuln_Server:

    • Change the IP address and port r'10.129.229.26:55555' to match the target vulnerable Request Basket server.
    root@kitploit:~
    IP_Vuln_Server = r'YOUR_TARGET_IP:PORT'
    
  2. Port Range for Scanning (Optional):

    • The script currently scans ports 75 through 81 (range(75,82)).
    • Adjust this range in the main() function if you want to scan different or a wider set of internal ports.
    root@kitploit:~
    for i in range(START_PORT, END_PORT + 1): # e.g., range(1, 65536) for all ports
        ConfBasketAndFetchResp(headers, i)
    
  3. forward_url in ConfBasketAndFetchResp (Advanced/Specific Use Cases):

    • By default, it targets http://127.0.0.1:{port}/.
    • If you suspect other internal services on different paths or even other internal IP addresses reachable by the vulnerable server, you can modify the forward_url string. However, for the intended SSRF to scan , is usually correct.

Ensure you have the requests library installed (pip install requests). Use this PoC responsibly and only on systems you have explicit permission to test.

Download Tool
localhost
127.0.0.1
root@kitploit:~
json_config = {
    "forward_url": f"http://TARGET_INTERNAL_IP:{port}/TARGET_PATH",
    # ... other parameters
}