id: aspcms-backend-panel

info:
  name: Aspcms Backend Panel - Detect
  author: SleepingBag945
  severity: info
  description: |
    ASPcms /plug/oem/AspCms_OEMFun.asp leak backend url.
  reference:
    - https://github.com/GREENHAT7/pxplan/blob/main/goby_pocs/Aspcms_Backend_Leak.json
  classification:
    cpe: cpe:2.3:a:asp4cms:aspcms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: asp4cms
    product: aspcms
    fofa-query: app="ASPCMS"
  tags: panel,login,aspcms,admin,discovery

http:
  - raw:
      - |
        GET /plug/oem/AspCms_OEMFun.asp  HTTP/1.1
        Host: {{Hostname}}
      - |
        GET {{path}}  HTTP/1.1
        Host: {{Hostname}}

    extractors:
      - type: regex
        internal: true
        name: path
        group: 1
        regex:
          - "top.location.href='(.*?)'"
    matchers:
      - type: dsl
        dsl:
          - 'status_code_1 == 200 && contains(body_1,"alert(")'
          - 'status_code_2 == 200 && contains(body_2,"var txtUserName = document.getElementById(")'
        condition: and
# digest: 4a0a0047304502205b9ea95a8cf6f92cd55ecb8ec052a56659024a6bcbf27d6b0acb3bfd02ba9100022100c0abe61f42443bd6e39efb33de8e16a0e2e28a15f89a594b4b7289446baec02a:922c64590222798bb761d5b6d8e72950