mirror of
https://github.com/lunchcat/sif.git
synced 2026-08-01 16:27:37 -07:00
modules/recon/laravel-ignition-exposure.yaml probes the live /_ignition/health-check endpoint and extracts can_execute_commands, the flag that marks the CVE-2021-3129 remote code execution surface. this is an active probe, complementary to the version based ignition entry in the framework cve map. modules/recon/symfony-profiler-exposure.yaml flags an exposed web profiler on its structural markers and extracts a request token to pivot to a captured request. modules/recon/spring-heapdump-exposure.yaml flags an exposed actuator heap dump on the hprof magic anchored at the start of the body, which a json marker module cannot see because the dump is binary, and extracts the hprof version. the anchor keeps a page that merely quotes the magic from matching. internal/modules/debug_exposure_test.go drives the three modules end to end through ExecuteHTTPModule and asserts the leak alongside the near misses a strict review wants pinned: a prose mention of ignition, the hprof magic away from the start, a plain 200 body and a 404, none of which may match, plus an exposed ignition with command execution disabled that still flags and reports the false flag. verify: go test ./internal/modules, each matcher, anchor and extractor proven to bite (break -> red, restore -> green).
36 lines
716 B
YAML
36 lines
716 B
YAML
# Spring Boot Heap Dump Exposure Detection Module
|
|
|
|
id: spring-heapdump-exposure
|
|
info:
|
|
name: Spring Boot Heap Dump Exposure
|
|
author: sif
|
|
severity: high
|
|
description: Detects an exposed Spring Boot actuator heap dump that leaks application memory and secrets
|
|
tags: [spring, actuator, heapdump, exposure, secrets, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/actuator/heapdump"
|
|
- "{{BaseURL}}/heapdump"
|
|
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- '^JAVA PROFILE 1\.0'
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: hprof_version
|
|
part: body
|
|
regex:
|
|
- '^JAVA PROFILE (1\.0\.\d)'
|
|
group: 1
|