Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions web-accessible-resources.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
id: web-accessible-resources

info:
name: Web-accessible Resources
description: Keep the list of web-accessible resources to a minimum to limit potential attack vectors.
name: Minimize Web Accessible Resources
description: The web_accessible_resources list should be limited to only necessary resources.
author: nullenc0de
severity: info

Expand All @@ -14,4 +14,27 @@ file:
- type: regex
part: body
regex:
- "\"web_accessible_resources\"\\s*:\\s*\\["
- '"web_accessible_resources"'

- type: regex
regex:
- "\\.html$"
negative: true

- type: regex
regex:
- "\\.js$"
negative: true

extractors:
- type: regex
part: body
name: web_resources
regex:
- '"web_accessible_resources":\\s*\\[(.+)\\]'

- type: regex
part: web_resources
name: resource
regex:
- "'([^']+)'"