id: CVE-2019-17503

info:
  name: Kirona Dynamic Resource Scheduler - Information Disclosure
  author: LogicalHunter
  severity: medium
  description: Kirona Dynamic Resource Scheduler is susceptible to information disclosure. An unauthenticated user can directly access /osm/REGISTER.cmd (aka /osm_tiles/REGISTER.cmd), which contains sensitive information with exposed SQL queries, such as database version, table name, and column name.
  remediation: |
    Apply the latest patch or update provided by the vendor to fix the information disclosure vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/47498
    - https://github.com/Ramikan/Vulnerabilities/blob/master/Kirona-DRS%205.5.3.5%20Multiple%20Vulnerabilities
    - http://packetstormsecurity.com/files/154838/Kirona-DRS-5.5.3.5-Information-Disclosure.html
    - https://nvd.nist.gov/vuln/detail/CVE-2019-17503
  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-2019-17503
    cwe-id: CWE-425
    epss-score: 0.00433
    epss-percentile: 0.71885
    cpe: cpe:2.3:a:kirona:dynamic_resource_scheduling:5.5.3.5:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: kirona
    product: dynamic_resource_scheduling
  tags: cve,cve2019,exposure,edb,packetstorm,kirona

http:
  - method: GET
    path:
      - "{{BaseURL}}/osm/REGISTER.cmd"
      - "{{BaseURL}}/osm_tiles/REGISTER.cmd"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DEBUGMAPSCRIPT=TRUE"
          - "@echo off"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a0048304602210095623f3cabae3186c4f4daecbba1a05b8392b9d94ef1b86e18f9ba7b9eb96f0e022100bdddea02dcd1c0221cf173cc2d5e5b5c36a0c88b63c8eff62f2124480f814d2d:922c64590222798bb761d5b6d8e72950