sharepoint-layouts-disclosure: Microsoft SharePoint - Layouts Disclosure

2025-12-02 Microsoft SharePoint PoC Public

Description

Detected exposed SharePoint Layouts endpoints.

PoC

id: sharepoint-layouts-disclosure

info:
  name: Microsoft SharePoint - Layouts Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Detected exposed SharePoint Layouts 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}}/_layouts/15/viewlsts.aspx"
      - "{{BaseURL}}/_layouts/viewlsts.aspx"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Site Contents","Libraries") || contains_all(body, "All Site Content","accessible mode")'
        condition: and
# digest: 4a0a00473045022100b59ac671dbdfa590e9d0781cedf0d5e5f9109b3f1ff5cb6d86d43cad46a47f4602206edb6274143f232a85e30cceeedc0aafb85be02d5621738392bac20635e8f53c:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities