id: webeditors-check-detect

info:
  name: Web Editor Check - Detect
  author: princechaddha,bernardofsr,gy741
  severity: info
  description: Multiple web editor checks were detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:ckeditor:ckeditor:*:*:*:*:drupal:*:*:*
  metadata:
    max-request: 17
    vendor: ckeditor
    product: ckeditor
    shodan-query: cpe:"cpe:2.3:a:ckeditor:ckeditor"
  tags: panel,webeditors,ckeditor,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}{{paths}}"
    payloads:
      paths:
        - "/fckeditor/_samples/default.html"
        - "/fckeditor/editor/filemanager/connectors/uploadtest.html"
        - "/ckeditor/samples/"
        - "/editor/ckeditor/samples/"
        - "/ckeditor/samples/sample_posteddata.php"
        - "/editor/ckeditor/samples/sample_posteddata.php"
        - "/fck/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php"
        - "/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellcheckder.php"
        - "/plugin/editor/smarteditor2/SmartEditor2Skin.html"
        - "/js/se2/SmartEditor2.html"
        - "/nse/SmartEditor2.html"
        - "/SmartEditor2.html"
        - "/apps/ckeditor/samples/old/replacebyclass.html"
        - "/plugin/editor/ckeditor/samples/old/replacebyclass.html"
        - "/latest/samples/old/replacebyclass.html"
        - "/Content/ckeditor/samples/old/replacebyclass.html"
        - "/ckeditor/samples/plugins/htmlwriter/outputhtml.html"

    matchers:
      - type: word
        words:
          - "<title>FCKeditor"
          - "<title>CKEditor Samples</title>"
          - "http://ckeditor.com</a>"
          - "Custom Uploader URL:"
          - "init_spell()"
          - "'tip':'"
          - ":: Smart Editor 2"
          - "Replace Textareas by Class Name"
          - "CKEditor - The text editor for the Internet"
        condition: or
# digest: 4b0a00483046022100d093b7d467ca5dd289b62904a94c8664b1e7b85cf2a25659b75d4533ab1e10e0022100f225f46f586b372953c1944a7f5df9c8e24bde2f7b65ed1e609d9630068fbbec:922c64590222798bb761d5b6d8e72950