31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
id: sql-server-reportviewer
|
|
|
|
info:
|
|
name: SQL Server ReportViewer - Exposure
|
|
author: kazet
|
|
severity: high
|
|
description: SQL Server ReportViewer page exposed.
|
|
reference:
|
|
- https://learn.microsoft.com/en-us/sql/reporting-services/create-deploy-and-manage-mobile-and-paginated-reports?view=sql-server-ver16
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
google-query: inurl:"/Reports/Pages/Folder.aspx"
|
|
tags: misconfig,sql,report,exposure
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET /Reports/Pages/Folder.aspx HTTP/1.1
|
|
Host: {{Hostname}}
|
|
- |
|
|
GET /ReportServer/Pages/Folder.aspx HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "status_code_1 == 200 && status_code_2 != 401"
|
|
- "contains(body, 'Data Source') && contains(body, 'SQL Server Reporting Services')"
|
|
condition: and
|
|
# digest: 4b0a004830460221008feccb6f64b565bdc0c250a76bf836e3fa99a59c5a9b7f80327b4f4628fdeaa60221008a23345dd57c7dbbce3370ad35499b7aaf50fe496815d0d9c30740b73e81bccf:922c64590222798bb761d5b6d8e72950 |