id: CVE-2018-8770

info:
  name: Cobub Razor 0.8.0 - Information Disclosure
  author: princechaddha
  severity: medium
  description: Cobub Razor 0.8.0 is susceptible to information disclosure via generate.php, controllers/getConfigTest.php, controllers/getUpdateTest.php, controllers/postclientdataTest.php, controllers/posterrorTest.php, controllers/posteventTest.php, controllers/posttagTest.php, controllers/postusinglogTest.php, fixtures/Controller_fixt.php, fixtures/Controller_fixt2.php, fixtures/view_fixt2.php, libs/ipTest.php, or models/commonDbfix.php. An attacker can obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    An attacker can exploit this vulnerability to gain sensitive information.
  remediation: |
    Upgrade to a patched version of Cobub Razor.
  reference:
    - http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-8770
    - https://www.exploit-db.com/exploits/44495/
    - https://github.com/Kyhvedn/CVE_Description/blob/master/Cobub_Razor_0.8.0_more_physical_path_leakage.md
    - https://nvd.nist.gov/vuln/detail/CVE-2018-8770
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2018-8770
    cwe-id: CWE-200
    epss-score: 0.58047
    epss-percentile: 0.9821
    cpe: cpe:2.3:a:cobub:razor:0.8.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: cobub
    product: razor
  tags: cve,cve2018,cobub,razor,exposure,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/tests/generate.php"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "Fatal error: Class 'PHPUnit_Framework_TestCase' not found in "
          - "/application/third_party/CIUnit/libraries/CIUnitTestCase.php on line"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a00463044022026786697565b2e007a358123b2c45a3ad9e61f7120eff2aed5aa93583ea769ae02207550bcdf9b4b7ebf4f5a2ed1541a89d94560fdf78b2eaba828521f286326bb5e:922c64590222798bb761d5b6d8e72950