Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-49103 PoC — ownCloud 安全漏洞

Source
Associated Vulnerability
Title:ownCloud 安全漏洞 (CVE-2023-49103)
Description:An issue was discovered in ownCloud owncloud/graphapi 0.2.x before 0.2.1 and 0.3.x before 0.3.1. The graphapi app relies on a third-party GetPhpInfo.php library that provides a URL. When this URL is accessed, it reveals the configuration details of the PHP environment (phpinfo). This information includes all the environment variables of the webserver. In containerized deployments, these environment variables may include sensitive data such as the ownCloud admin password, mail server credentials, and license key. Simply disabling the graphapi app does not eliminate the vulnerability. Additionally, phpinfo exposes various other potentially sensitive configuration details that could be exploited by an attacker to gather information about the system. Therefore, even if ownCloud is not running in a containerized environment, this vulnerability should still be a cause for concern. Note that Docker containers from before February 2023 are not vulnerable to the credential disclosure.
Description
PoC for the CVE-2023-49103
Readme
# CVE-2023-49103
PoC for the CVE-2023-49103

## Overview
This Python script is designed to efficiently process a large list of URLs to check for the presence of `phpinfo()` output. It uses multi-threading to handle a large number of URLs concurrently, significantly speeding up the process. The script also features a real-time progress bar to visually track the progress.

To trigger the vulnerability, access to the phpinfo() URL isn't enough: you also need to bypass .htaccess (thanks rapid7 for the insight). In this case, this is done by adding /.css to the URL. 

## Requirements
- Python 3.x
- `requests`
- `urllib3`
- `colorama`
- `alive-progress`
- `concurrent.futures` (part of the standard library in Python 3)

## Installation
1. Ensure you have Python 3 installed on your system.
2. Clone this repository or download the script.
3. Install the required Python packages:

`pip install requests urllib3 colorama alive-progress`

## Usage
To use the script, you need a text file containing a list of URLs to check. Each URL should be on a new line.

## Prepare your URL list

Create a text file (e.g., urls.txt) with each URL on a new line.

## Run the script

Use the script with the following command, replacing input_file.txt with your file of URLs and output_file.txt with the desired output file name:

`python exploit.py -t input_file.txt -o output_file.txt`

## View Results

The script will process each URL and output the results to the specified output file. URLs with valid phpinfo() output are logged in this file.

##  Contributions
Feel free to fork this repository or submit pull requests with improvements.

Thanks @random-robbie for the PR <3 

##  Disclaimer 

I originally wrote this script just for fun (I was bored and wanted to try my hand at multithreading) and not for any malicious purposes. Do the same, test on YOUR own instances and not on the neighbor's instance. 
This script is ONLY for educational purposes, of course.  
File Snapshot

[4.0K] /data/pocs/95b6138961297c2f2e5a818056a888c8659f1b03 ├── [2.8K] exploit.py └── [1.9K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →