ownCloud Graph API — 1 vulnerability check

noctis ships 1 vulnerability check for ownCloud Graph API, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

ownCloud Graph API phpinfo Disclosure

CVECVE-2023-49103
Severityhigh · CVSS 7.5
Categoryexposure — Exposure
Serviceshttp, https
Detectionhttp_request, match · highest QoD 97
Feedtests/vulnerabilities/owncloud-graphapi/CVE-2023-49103.yaml

The ownCloud graphapi app exposes GetPhpInfo.php from the Microsoft Graph PHP SDK without authentication. The file returns the full phpinfo() output including all environment variables — in containerised ownCloud deployments this leaks OWNCLOUD_ADMIN_USERNAME, OWNCLOUD_ADMIN_PASSWORD, SMTP credentials, etc. In the CISA KEV catalogue; EPSS ~0.96.

How noctis detects it

  1. HTTP(S) request GET /apps/graphapi/vendor/microsoft/microsoft-graph/tests/GetPhpInfo.php
  2. Checks phpinfo_resp.body for OWNCLOUD_ADMIN → finding QoD 97: phpinfo() output exposed at /apps/graphapi/.../GetPhpInfo.php — ownCloud admin credentials visible in environment variables
  3. Checks phpinfo_resp.body for PHP Version → finding QoD 75: phpinfo() output exposed at /apps/graphapi/.../GetPhpInfo.php — sensitive server configuration and environment variables disclosed
  4. HTTP(S) request GET /apps/graphapi/vendor/microsoft/microsoft-graph/tests/GetPhpInfo.php/.css
  5. Checks phpinfo_css_resp.body for OWNCLOUD_ADMIN → finding QoD 97: phpinfo() output exposed via .css bypass at /apps/graphapi/.../GetPhpInfo.php/.css — ownCloud admin credentials visible in environment vari…
  6. Checks phpinfo_css_resp.body for PHP Version → finding QoD 75: phpinfo() output exposed via .css bypass at /apps/graphapi/.../GetPhpInfo.php/.css — sensitive server configuration disclosed

References:

Feed source — tests/vulnerabilities/owncloud-graphapi/CVE-2023-49103.yaml
uid: 2736c613-25fb-4262-94c8-3acaf3ad75a4
name: "ownCloud Graph API phpinfo Disclosure (CVE-2023-49103)"
description: |
  The ownCloud graphapi app exposes GetPhpInfo.php from the Microsoft Graph PHP SDK
  without authentication. The file returns the full phpinfo() output including all
  environment variables — in containerised ownCloud deployments this leaks
  OWNCLOUD_ADMIN_USERNAME, OWNCLOUD_ADMIN_PASSWORD, SMTP credentials, etc.
  In the CISA KEV catalogue; EPSS ~0.96.
cves: [CVE-2023-49103]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.20
tags: [owncloud, phpinfo, disclosure, graphapi, kev, misconfig]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2023-49103"
  - "https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"

steps:
  - id: probe-phpinfo
    action: http_request
    method: GET
    path: "/apps/graphapi/vendor/microsoft/microsoft-graph/tests/GetPhpInfo.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: phpinfo_resp

  - id: check-owncloud-creds
    action: match
    source: phpinfo_resp.body
    pattern: "OWNCLOUD_ADMIN"
    on_match:
      finding:
        confidence_delta: 0.77
        qod: 97
        evidence: "phpinfo() output exposed at /apps/graphapi/.../GetPhpInfo.php — ownCloud admin credentials visible in environment variables"
      stop: true

  - id: check-phpinfo-markers
    action: match
    source: phpinfo_resp.body
    pattern: "PHP Version"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "phpinfo() output exposed at /apps/graphapi/.../GetPhpInfo.php — sensitive server configuration and environment variables disclosed"
      stop: true

  - id: probe-phpinfo-css-bypass
    action: http_request
    method: GET
    path: "/apps/graphapi/vendor/microsoft/microsoft-graph/tests/GetPhpInfo.php/.css"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: phpinfo_css_resp

  - id: check-owncloud-creds-css
    action: match
    source: phpinfo_css_resp.body
    pattern: "OWNCLOUD_ADMIN"
    on_match:
      finding:
        confidence_delta: 0.77
        qod: 97
        evidence: "phpinfo() output exposed via .css bypass at /apps/graphapi/.../GetPhpInfo.php/.css — ownCloud admin credentials visible in environment variables"
      stop: true

  - id: check-phpinfo-markers-css
    action: match
    source: phpinfo_css_resp.body
    pattern: "PHP Version"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "phpinfo() output exposed via .css bypass at /apps/graphapi/.../GetPhpInfo.php/.css — sensitive server configuration disclosed"
      stop: true

View these feeds on GitHub