mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 22:40:54 -07:00
add recon modules for self-hosted browser-automation grids that do not authenticate their status endpoint: selenium grid /status discloses every registered node with its os and browser slots, and selenoid /status discloses the running sessions, capacity and browser images; each open grid also lets anyone create a session that drives a real browser to arbitrary internal urls, while a grid behind an authenticating proxy returns 401 and is not flagged.
42 lines
897 B
YAML
42 lines
897 B
YAML
# Selenium Grid Status Exposure Detection Module
|
|
|
|
id: selenium-grid-exposure
|
|
info:
|
|
name: Selenium Grid Status Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects a Selenium Grid whose status endpoint leaks registered nodes and lets anyone drive a browser to internal urls
|
|
tags: [selenium, selenium-grid, webdriver, browser-automation, ssrf, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/status"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"value\""
|
|
- "\"nodes\""
|
|
condition: and
|
|
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- '"message"\s*:\s*"Selenium Grid'
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: selenium_version
|
|
part: body
|
|
regex:
|
|
- '"availability"\s*:\s*"[^"]*"\s*,\s*"version"\s*:\s*"([^"]+)"'
|
|
group: 1
|