
Gibbon v25.0.0 is vulnerable to a Local File Inclusion (LFI)
This repository contains a Python script that helps identify and exploit a local file inclusion (LFI) vulnerability (CVE-2023-34598) in Gibbon v25.0.0. The script can scan a target website for potential vulnerability and, if successful, download the SQL dump for further analysis. It also provides a built-in FOFA query to help locate potentially vulnerable targets.
CVE-2023-34598.pyWarning: This script is intended for educational purposes and authorized penetration testing. Unauthorized use against websites or servers may be illegal and is strictly discouraged. Always obtain proper permission before testing.
pip install requests)pip install requests
Run the script without arguments or use the -h/--help option:
python3 CVE-2023-34598.py -h
This will display an overview of all available commands and options.
To display the FOFA query that helps locate potentially vulnerable targets, use:
python3 CVE-2023-34598.py fofa
Copy the displayed query and use it in FOFA to find target URLs.
To scan a specific target URL, run:
python3 CVE-2023-34598.py scan https://example.com/gibbon
Replace https://example.com/gibbon with the base URL of your Gibbon installation.
The script will:
?q=gibbon.sql."SQL Dump").Gibbon_dump, or Gibbon_dump-2 if the directory already exists, etc.).gibbon.sql inside the newly created directory.Directory Creation
Gibbon_dump is created if the target is found vulnerable, and the script stores results there.Gibbon_dump already exists, the script creates a new directory named Gibbon_dump-2, Gibbon_dump-3, etc.File Outputs
!target.txt: Contains the scanned target’s base URL.gibbon.sql: Contains the extracted SQL dump if markers are found.Error Handling
python3 CVE-2023-34598.py scan https://victim.com/gibbon
Gibbon_dump) and saves !target.txt and gibbon.sql.python3 CVE-2023-34598.py fofa
Credit to @komodoooo, this is just a python fork of his ruby repository.