id: office-webapps-panel

info:
  name: Office Web Apps Server Panel - Detect
  author: DhiyaneshDK
  severity: info
  description: Microsoft Office Web App Login Panel was discovered.
  reference:
    - https://www.microsoft.com/en-in/microsoft-365/free-office-online-for-the-web
  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-668
    cpe: cpe:2.3:a:microsoft:office_web_apps_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    product: office_web_apps_server
    shodan-query: html:"Provide a link that opens Word"
    vendor: microsoft
    verified: true
  tags: panel,office-webapps,login,microsoft

http:
  - method: GET
    path:
      - "{{BaseURL}}/op/generate.aspx"
      - "{{BaseURL}}/op/wrongfiletype.htm"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "Provide a link that opens Word"
          - "PowerPoint files in a web browser"
        condition: and

      - type: word
        part: body
        words:
          - "_OFUError"
          - "Wrong file type"
        condition: and
# digest: 4a0a0047304502202fe17282aa53c55f49e32a51c6275ee7c74b0f6f2ba7e1bcba61b10738df55d6022100d6e41c611666a89f972a37abd03a18a6d0413443c88fca1a4646b6612707da5a:922c64590222798bb761d5b6d8e72950