id: dedecms-detect

info:
  name: DedeCMS Detect
  author: ritikchaddha,pphuahua
  severity: info
  classification:
    cpe: cpe:2.3:a:dedecms:dedecms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: dedecms
    product: dedecms
    shodan-query: title:"dedecms" || http.html:"power by dedecms"
  tags: dedecms,tech,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/robots.txt"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "status_code_1 == 200 && contains(body,'Power by DedeCms') || contains(body,'DedeCMS演示站') || contains(body,'DedeCMS')"
          - "status_code_2 == 200 && contains(body_2,'/plus/search.php')"
        condition: or
# digest: 4a0a00473045022100bc95b56ef21d6802be81e010f2c51d41aab53a308ca0668975b03fd81f1326ae0220468527f71aa435b0565bb15a1ab8b2f8e06dc46f6558a7b4f5da9831f1b59052:922c64590222798bb761d5b6d8e72950