.. / CVE-2023-49103

Exploit for OwnCloud - Phpinfo Configuration (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.

Nuclei Template

View the template here CVE-2023-49103.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2023/CVE-2023-49103.yaml
Copy

References:

https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/
https://www.rapid7.com/blog/post/2023/12/01/etr-cve-2023-49103-critical-information-disclosure-in-owncloud-graph-api/
https://github.com/creacitysec/CVE-2023-49103/blob/main/exploit.py
https://attackerkb.com/topics/G9urDj4Cg2/cve-2023-49103
https://nvd.nist.gov/vuln/detail/CVE-2023-49103
https://www.labs.greynoise.io//grimoire/2023-11-29-owncloud-redux/