sharepoint-masterpage-disclosure: Microsoft SharePoint - Master Page Disclosure

2025-12-02 Microsoft SharePoint PoC Public

Description

Detected exposed SharePoint Master Page endpoints.

PoC

id: sharepoint-masterpage-disclosure

info:
  name: Microsoft SharePoint - Master Page Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Detected exposed SharePoint Master Page endpoints.
  reference:
    - https://sharepointstuff.com/2021/03/30/useful-sharepoint-urls/
  metadata:
    max-request: 2
    verified: true
    shodan-query: http.title:"SharePoint"
    fofa-query: title="SharePoint"
  tags: sharepoint,microsoft,exposure,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/_catalogs/masterpage/Forms/AllItems.aspx"
      - "{{BaseURL}}/_catalogs/15/masterpage/Forms/AllItems.aspx"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains_all(body, "Master Page Gallery", "Recycle")
        condition: and
# digest: 4b0a00483046022100cf4f7e6e2bdb699a59f76ccd98f64e55c94f082463559b23528acb7b4fb5beb3022100a0d7b6f3e267a0ca73ac7456ff8f89e9c5484d98e9e71a9162352b2aba4fe8f2:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities