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:
    verified: true
    max-request: 2
    vendor: microsoft
    product: office_web_apps_server
    shodan-query:
      - html:"Provide a link that opens Word"
      - http.html:"provide a link that opens word"
    fofa-query: body="provide a link that opens word"
  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: 4a0a00473045022100eb5828b8c64eaae5e0d3744dd52c1eb94d54c469b7712c39dcd812a7af9a23850220572a6e36b2a195bac06e898c998fec89e3b97120705759a99732fc14bb13a9d4:922c64590222798bb761d5b6d8e72950