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

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: 4a0a00473045022100d06203d226d7bbc7cd40a189f2a6f7fdb95c5df3146d8c0ec9b4251684f0bd62022061cba86f34fab496323d4cc1efd6bd11a4047431341771372265555397e34d16:922c64590222798bb761d5b6d8e72950