-
Notifications
You must be signed in to change notification settings - Fork 0
π‘οΈ Sentinel: [MEDIUM] μΉν URL μμ± μ SSRF μ·¨μ½μ μμ #612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -266,7 +266,7 @@ r = await req(`/api/orgs/${orgAId}/export`, { headers: oauth }); | |
| assert.equal(r.status, 403, 'non-owner export β 403'); | ||
|
|
||
| // ---- Webhooks ---- | ||
| r = await req(`/api/orgs/${orgAId}/webhooks`, { method: 'POST', headers: auth, body: body({ url: 'http://127.0.0.1:9/hook', events: ['project.update'] }) }); | ||
| r = await req(`/api/orgs/${orgAId}/webhooks`, { method: 'POST', headers: auth, body: body({ url: 'http://example.com/hook', events: ['project.update'] }) }); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π‘ Webhook test now depends on external network The webhook test posts to Prompt for agentsWas this helpful? React with π or π to provide feedback. |
||
| assert.equal(r.status, 200, 'create webhook'); | ||
| const wh = await r.json(); | ||
| assert.ok(wh.secret.startsWith('whsec_'), 'webhook secret returned once'); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π¨ Webhook SSRF denylist is incomplete and bypassable
The check rejects only five literal hostnames. It misses private ranges (10/8, 172.16/12, 192.168/16), the rest of loopback and link-local, IPv6 internal ranges, and alternate IP encodings (decimal, octal, hex). Because only the submitted hostname is checked, a public DNS name resolving to an internal IP, or a public host that redirects inward, still reaches internal targetsβ
fetchinsendWebhookfollows redirects unvalidated (server/app.mjs:106).Was this helpful? React with π or π to provide feedback.