You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security: Credential-bearing webhook URLs are logged in full by spored and by the lagotto poller #1592
From the pre-1.0 security audit (spore-host/spore-host#649, 2026-11-11), audit id secrets-9. Verified: confirmed, severity low (reviewer said low).
Where:pkg/agent/agent.go:2028 (at origin/main on 2026-11-11)
Evidence
spawn pkg/agent/agent.go:2028 log.Printf("%s: POST to %s failed ... %v", label, url, err); :2033 and :2036 log.Printf("%s: notice POSTed to %s", label, url), on every spot or completion webhook, success included. spawn itself calls these URLs credentials: cmd/sweep_member_record.go:99-101, "an incoming-webhook URL is itself the credential". lagotto pkg/watcher/notifier.go:625-628 returns fmt.Errorf("post to webhook: %w", err); the *url.Error includes the full URL; poller.go:1238 prints it to stderr, which is the Lambda's CloudWatch log.
Scenario
Slack, Teams and queue webhook URLs (secret path or query) end up in the instance journal and, for lagotto, in CloudWatch Logs whenever a transport error occurs. Anyone with logs read in the account can use them to post into the user's channel.
Verifier
spawn pkg/agent/agent.go:2028, 2033 and 2036 log the full URL. lagotto notifier.go:625-627 wraps the *url.Error (which contains the full URL), and poller.go prints it to stderr. For spawn, the same URLs are already stored as EC2 tags (spawn:completion-webhook-url and spawn:spot-webhook-url, see pkg/aws/testdata/every-setting-tags.v0.149.0.json:11,35), readable by anyone with DescribeInstances. The on-instance journal adds nearly nothing beyond that, and the tags are arguably the larger exposure. The lagotto CloudWatch leak is real but needs a transport error and logs-read in the account.
Suggested fix
Log only scheme://host (as SweepWithheld.Hint already does), and redact url.Error.URL before wrapping it.
Deployed-state check
Search the lagotto Lambda log group for 'post to webhook' lines containing hooks.slack.com. Count only.
Activity
spored: never log a webhook URL (#1592)
spored: never log a webhook URL (#1592)
spored: never log a webhook URL (#1592) (#1629)