Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python agentsai-hackingai-penetration-testingai-pentestingai-securityartificial-intelligencebug-bountycode-qualityctf-toolscybersecuritycybersecurity-toolsethical-hackinghackingllm-securityoffensive-securitypenetration-testingpentesting-toolsred-teamingsecuritysecurity-automation
fix(container): allow configured Caido UI domains (#723)
alex sf7fa54c12d22
diff --git a/containers/docker-entrypoint.sh b/containers/docker-entrypoint.shindex f8e179b1..a12390df 100644--- a/containers/docker-entrypoint.sh+++ b/containers/docker-entrypoint.sh@@ -9,10 +9,24 @@ if [ ! -f /app/certs/ca.p12 ]; thenexit 1fi+# Caido enforces a Host allowlist (DNS-rebinding protection) and rejects requests+# whose Host header is a hostname it doesn't recognize. To reach Caido over a+# hostname (rather than an IP literal), set STRIX_CAIDO_ALLOWED_DOMAINS to a+# comma-separated list of hostnames to allow. Unset by default.+# See https://docs.caido.io/app/guides/domain_allowlist+CAIDO_UI_DOMAIN_ARGS=()+if [ -n "${STRIX_CAIDO_ALLOWED_DOMAINS:-}" ]; then+ IFS=',' read -ra _caido_domains <<< "${STRIX_CAIDO_ALLOWED_DOMAINS}"+ for _d in "${_caido_domains[@]}"; do+ [ -n "$_d" ] && CAIDO_UI_DOMAIN_ARGS+=(--ui-domain "$_d")+ done+fi+caido-cli --listen 0.0.0.0:${CAIDO_PORT} \--allow-guests \--no-logging \--no-open \+ "${CAIDO_UI_DOMAIN_ARGS[@]}" \--import-ca-cert /app/certs/ca.p12 \--import-ca-cert-pass "" > "$CAIDO_LOG" 2>&1 &