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,discovery

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: 490a0046304402201e1cb00b45bee90f8fab6978c5de99446d08eec40b223521d3b4dcc5caac35580220223ac3d9b655ae52f51e47d952bf493490d40077ac77e164a459c1aa827d0410:922c64590222798bb761d5b6d8e72950