HexBrain

Browse / CVEs / CVE-2023-0678

CVE-2023-0678· phpipam / phpipam· CWE-862

PHPIPAM <v1.5.1 - Missing Authorization

mediumseverity
5.3CVSS score
37.3%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

In phpIPAM 1.5.1, an unauthenticated user could download the list of high-usage IP subnets that contains sensitive information such as a subnet description, IP ranges, and usage rates via find_full_subnets.php endpoint. The bug lies in the fact that find_full_subnets.php does not verify if the user is authorized to access the data, and if the script was started from a command line.

Impact

Unauthenticated attackers can access sensitive network information including IP subnet descriptions, ranges, and usage rates through the find_full_subnets.php endpoint without authorization.

Fix

Update phpIPAM to version 1.5.1 or later that implements proper authorization checks in find_full_subnets.php before returning subnet information.

How to confirm it

Send: GET {{BaseURL}}/functions/scripts/find_full_subnets.php
Positive when: contains_all(body, "Array", "[subnet]", "[description]") and status_code == 200

Run it with nuclei: nuclei -id CVE-2023-0678 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2023-0678

info:
  name: PHPIPAM <v1.5.1 - Missing Authorization
  author: princechaddha,ritikchaddha
  severity: medium
  description: |
    In phpIPAM 1.5.1, an unauthenticated user could download the list of high-usage IP subnets that contains sensitive information such as a subnet description, IP ranges, and usage rates via find_full_subnets.php endpoint. The bug lies in the fact that find_full_subnets.php does not verify if the user is authorized to access the data, and if the script was started from a command line.
  impact: |
    Unauthenticated attackers can access sensitive network information including IP subnet descriptions, ranges, and usage rates through the find_full_subnets.php endpoint without authorization.
  remediation: |
    Update phpIPAM to version 1.5.1 or later that implements proper authorization checks in find_full_subnets.php before returning subnet information.
  reference:
    - https://github.com/phpipam/phpipam/commit/1960bd24e8a55796da066237cf11272c44bb1cc4
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2023-0678
    cwe-id: CWE-862
    epss-score: 0.37304
    epss-percentile: 0.98538
    cpe: cpe:2.3:a:phpipam:phpipam:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: phpipam
    product: phpipam
    shodan-query:
      - "html:\"phpIPAM IP address management\""
      - http.html:"phpipam ip address management"
    fofa-query: "body=\"phpipam ip address management\""
  tags: cve,cve2023,php,phpipam,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/functions/scripts/find_full_subnets.php"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Array", "[subnet]", "[description]")'
          - 'status_code == 200'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from