René's URL Explorer Experiment


Title: fix(security): SSRF pinning, Twilio webhook auth, copilot token leak, audit-log tenant scoping by waleedlatif1 · Pull Request #4899 · simstudioai/sim · GitHub

Open Graph Title: fix(security): SSRF pinning, Twilio webhook auth, copilot token leak, audit-log tenant scoping by waleedlatif1 · Pull Request #4899 · simstudioai/sim

X Title: fix(security): SSRF pinning, Twilio webhook auth, copilot token leak, audit-log tenant scoping by waleedlatif1 · Pull Request #4899 · simstudioai/sim

Description: Summary ClickHouse + MCP auth-probe: pin outbound HTTP to the validated IP to close DNS-rebinding/SSRF windows KB connectors (S3, GitLab, Sentry, Obsidian): route user-controlled hosts through DNS-validated, IP-pinned fetch Twilio SMS webhook: enforce X-Twilio-Signature verification (was unauthenticated; forged inbound SMS could queue executions) Copilot credentials API: stop returning plaintext OAuth access tokens; response now exposes only masked display metadata Enterprise audit logs: scope access to the organization boundary, closing a cross-tenant IDOR Added regression tests across all of the above Type of Change Bug fix (security) Testing Tested manually and with added unit tests (clickhouse 6, mcp probe 5, copilot credentials 4, twilio 12, connectors 37, audit-logs 15 — all passing) Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary ClickHouse + MCP auth-probe: pin outbound HTTP to the validated IP to close DNS-rebinding/SSRF windows KB connectors (S3, GitLab, Sentry, Obsidian): route user-controlled hosts through DNS...

X Description: Summary ClickHouse + MCP auth-probe: pin outbound HTTP to the validated IP to close DNS-rebinding/SSRF windows KB connectors (S3, GitLab, Sentry, Obsidian): route user-controlled hosts through DNS...

Opengraph URL: https://github.com/simstudioai/sim/pull/4899

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1257aba7-6340-6139-482b-37cfc00166c0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD282:1C8E04:865A59:B90FBE:6AFB492B
html-safe-noncedeb093f3801dab71b0bb66bd4b142e5bc1be9a83fecfd72bc9e378ba8c257f86
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjgyOjFDOEUwNDo4NjVBNTk6QjkwRkJFOjZBRkI0OTJCIiwidmlzaXRvcl9pZCI6Ijg4MDM4Njk2NTA3MDI3ODA3MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca01e4169c0261806d121ca12acd961b589cdf69a75d3befc2318c2d23b00efb8
hovercard-subject-tagpull_request:3816889996
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/4899/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary ClickHouse + MCP auth-probe: pin outbound HTTP to the validated IP to close DNS-rebinding/SSRF windows KB connectors (S3, GitLab, Sentry, Obsidian): route user-controlled hosts through DNS...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4899/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4899%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4899%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4899/files
Reloadhttps://github.com/simstudioai/sim/pull/4899/files
Reloadhttps://github.com/simstudioai/sim/pull/4899/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/sec-thttps://github.com/simstudioai/sim/tree/fix/sec-t
Conversation 11 https://github.com/simstudioai/sim/pull/4899
Commits 10 https://github.com/simstudioai/sim/pull/4899/commits
Checks 13 https://github.com/simstudioai/sim/pull/4899/checks
Files changed https://github.com/simstudioai/sim/pull/4899/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4899/files
fix(security): SSRF pinning, Twilio webhook auth, copilot token leak, audit-log tenant scoping https://github.com/simstudioai/sim/pull/4899/files#top
Show all changes 10 commits https://github.com/simstudioai/sim/pull/4899/files
c66a882 fix(clickhouse): pin outbound HTTP connection to validated IP (DNS re… waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/c66a882b7bf424653eddc8b81278b961d4737528
37373b8 fix(mcp): pin auth-type probe to validated IP to close SSRF/DNS-rebin… waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/37373b8e397d42106140909592fe90624f08dbcf
e64b703 fix(security): stop returning plaintext OAuth access tokens from copi… waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/e64b70304b8a9b07da2e6f4a9ea475c0defe4c4b
5e067b2 fix(webhooks): verify X-Twilio-Signature on Twilio SMS webhooks waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/5e067b29ba3be7b32621301a679a0ee08614c798
715e672 fix(connectors): route user-controlled connector hosts through DNS-va… waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/715e67204509e4261928aa1fbfaa6f9c69bd5491
0f7bf96 fix(audit-logs): scope enterprise audit log access to organization bo… waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/0f7bf96d554ef303db749b33ceda13ae7d2b203d
720b203 fix(webhooks): warn when Twilio webhook has no auth token configured waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/720b2036ffb656f036f28ca6078745cc54daf469
4427bb5 fix(audit-logs): include system events (null actor) in default org au… waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/4427bb59fca729062e6b30d45db84a5a66d57a2f
4a7c354 fix(auth): type-safe access to OAuth2Tokens raw payload waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/4a7c354bec9cf1623459971a17c65fd060a2ff23
69b3857 fix(build): keep connector SSRF fetch out of the client bundle waleedlatif1 Jun 6, 2026 https://github.com/simstudioai/sim/pull/4899/commits/69b38572bf7ea5af4a78b3f693c60e847207bd44
Clear filters https://github.com/simstudioai/sim/pull/4899/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4899/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4899/files
route.ts https://github.com/simstudioai/sim/pull/4899/files#diff-224c91d9086179a0a139d3d6fc0a375252e80cc998feaf25feea1a2faa0a9cce
route.ts https://github.com/simstudioai/sim/pull/4899/files#diff-c17c6c2db02c547d29b44e4d9889ee09f2c27c1de2952ee2f02de2de8023725b
utils.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-03b1225b99d3f0809cc2a4fde7d58a24e756381d7c8774e8c950202321f3da8a
utils.ts https://github.com/simstudioai/sim/pull/4899/files#diff-74b2750761541899149fff91301d6816a445051d13b28a43a0b6284492841110
route.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-596e438118d235cd5abb8fa69f4a1c41299556b844428f9e0238be909e46ec84
route.ts https://github.com/simstudioai/sim/pull/4899/files#diff-3af52f717d90558e16a5d7558d8fdfd0d060cca1c9a10777fccef9088c14dec1
query.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-71d0207ad63f50aee19d8a20ca1a7ce6333a8181b74ffb926ca3f03b5463e0a3
query.ts https://github.com/simstudioai/sim/pull/4899/files#diff-e305414b8f897f148bf6878ea039e73d38f18cd3ab5b549f941116ccd9bf3654
route.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-a22f7996ee7500bf0fdc166a39be1ff40c4561974df7c70e8cf94ded4a80dae0
route.ts https://github.com/simstudioai/sim/pull/4899/files#diff-84bad28ae7d475877f9a7c6f1b58d0455aea329b1502b87285d4966b73b406f5
gitlab.ts https://github.com/simstudioai/sim/pull/4899/files#diff-ffd934e1deada0b54a49c9be54f1c16493893dd9678e344c55491dd07abd045f
obsidian.ts https://github.com/simstudioai/sim/pull/4899/files#diff-2f4917fb547fcbdefc5bb58156a7079b3c6a5ba8aa79b8c4190af3e59d4f9645
s3.ts https://github.com/simstudioai/sim/pull/4899/files#diff-7eaef73bbc46110c20a243546b6e18e82cd167222d8825d602838794708d54da
sentry.ts https://github.com/simstudioai/sim/pull/4899/files#diff-1c63acb5bde3aa7dd8ccc12e609d173a80b7485ee3593743ac66749e20acfb4d
utils.ts https://github.com/simstudioai/sim/pull/4899/files#diff-c27db14947d25b8915e236c873ccf485a2e0497266dde4f61bd295f93e7f3920
copilot.ts https://github.com/simstudioai/sim/pull/4899/files#diff-8b5dc9d30733bae6d14041b210bc4a1aacaa52829dcb1341289cf86395178fd0
auth.ts https://github.com/simstudioai/sim/pull/4899/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
get-credentials.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-e5c43053fb26336243b6589b9ce1f53582a287082dbff76bab5c6c830df9272a
get-credentials.ts https://github.com/simstudioai/sim/pull/4899/files#diff-7269f2055e6f1e96cb97f46fbf30423a99ae3877da507d6fc1f59a7895827eb8
empty-node-fallback.browser.ts https://github.com/simstudioai/sim/pull/4899/files#diff-37c2f5a9e8600e13769d3fabc98cea49a562c761c24787d0e0fe67d059b8beb8
secure-fetch.server.ts https://github.com/simstudioai/sim/pull/4899/files#diff-0532e65d4f6a3dc8e02a333e42c56fbca6f49dc7c37df8cfed30417e145ef7d9
utils.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-9c304be25623200be4e947db1907c03c79b289adaf4cb34e57b7c80d2aae5b0b
utils.ts https://github.com/simstudioai/sim/pull/4899/files#diff-94a5318c859361a50ad73b5ea07e35e594a315dd6be5288b97489301c434addb
probe.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-bc43a1492cb986c92b7f41bd724dbbc42edd31fb14c6a71a5230268615ace122
probe.ts https://github.com/simstudioai/sim/pull/4899/files#diff-98845bad4396ae700441369770277e66b375ead53144e063b55d99b2778ba34f
revoke.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-9141de4ac0edfc2350705d5dcbdb47f819796bd1f692a6c1f81c4e5be91e3d95
server-lifecycle.ts https://github.com/simstudioai/sim/pull/4899/files#diff-0680f8bc617e13ef336c024a3a18671af0b7fd2658f55f5de274b33a97de9581
twilio-signature.ts https://github.com/simstudioai/sim/pull/4899/files#diff-6e311dcca7362fa5155514e300c494f32a981b17f050c4cc5bfc9dfa7f0f2855
twilio-voice.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-91b34d520e253e517bf8c09183aababe85dffe2277784b62840b6e3945f74b66
twilio-voice.ts https://github.com/simstudioai/sim/pull/4899/files#diff-fe0d64c19139681b09a025e1f04cc05ca261ed61c49daed59e5194eb13716292
twilio.test.ts https://github.com/simstudioai/sim/pull/4899/files#diff-c0ba5011aeaf1da67c0f952bea84b47329f4ee2d836a0a96a0bf4636767293a4
twilio.ts https://github.com/simstudioai/sim/pull/4899/files#diff-d84c6e0e408b415368535bc4cdb99b336dc85fab6f881ba0a466288b6a7c241b
next.config.ts https://github.com/simstudioai/sim/pull/4899/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
apps/sim/app/api/audit-logs/route.tshttps://github.com/simstudioai/sim/pull/4899/files#diff-224c91d9086179a0a139d3d6fc0a375252e80cc998feaf25feea1a2faa0a9cce
View file https://github.com/simstudioai/sim/blob/69b38572bf7ea5af4a78b3f693c60e847207bd44/apps/sim/app/api/audit-logs/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4899/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4899/files#diff-224c91d9086179a0a139d3d6fc0a375252e80cc998feaf25feea1a2faa0a9cce
https://github.com/simstudioai/sim/pull/4899/files#diff-224c91d9086179a0a139d3d6fc0a375252e80cc998feaf25feea1a2faa0a9cce
https://github.com/simstudioai/sim/pull/4899/files#diff-224c91d9086179a0a139d3d6fc0a375252e80cc998feaf25feea1a2faa0a9cce
https://github.com/simstudioai/sim/pull/4899/files#diff-224c91d9086179a0a139d3d6fc0a375252e80cc998feaf25feea1a2faa0a9cce
https://github.com/simstudioai/sim/pull/4899/files#diff-224c91d9086179a0a139d3d6fc0a375252e80cc998feaf25feea1a2faa0a9cce
apps/sim/app/api/mcp/servers/test-connection/route.tshttps://github.com/simstudioai/sim/pull/4899/files#diff-c17c6c2db02c547d29b44e4d9889ee09f2c27c1de2952ee2f02de2de8023725b
View file https://github.com/simstudioai/sim/blob/69b38572bf7ea5af4a78b3f693c60e847207bd44/apps/sim/app/api/mcp/servers/test-connection/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4899/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4899/files#diff-c17c6c2db02c547d29b44e4d9889ee09f2c27c1de2952ee2f02de2de8023725b
https://github.com/simstudioai/sim/pull/4899/files#diff-c17c6c2db02c547d29b44e4d9889ee09f2c27c1de2952ee2f02de2de8023725b
apps/sim/app/api/tools/clickhouse/utils.test.tshttps://github.com/simstudioai/sim/pull/4899/files#diff-03b1225b99d3f0809cc2a4fde7d58a24e756381d7c8774e8c950202321f3da8a
View file https://github.com/simstudioai/sim/blob/69b38572bf7ea5af4a78b3f693c60e847207bd44/apps/sim/app/api/tools/clickhouse/utils.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4899/{{ revealButtonHref }}
apps/sim/app/api/tools/clickhouse/utils.tshttps://github.com/simstudioai/sim/pull/4899/files#diff-74b2750761541899149fff91301d6816a445051d13b28a43a0b6284492841110
View file https://github.com/simstudioai/sim/blob/69b38572bf7ea5af4a78b3f693c60e847207bd44/apps/sim/app/api/tools/clickhouse/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4899/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4899/files#diff-74b2750761541899149fff91301d6816a445051d13b28a43a0b6284492841110
https://github.com/simstudioai/sim/pull/4899/files#diff-74b2750761541899149fff91301d6816a445051d13b28a43a0b6284492841110
https://github.com/simstudioai/sim/pull/4899/files#diff-74b2750761541899149fff91301d6816a445051d13b28a43a0b6284492841110
apps/sim/app/api/v1/audit-logs/[id]/route.test.tshttps://github.com/simstudioai/sim/pull/4899/files#diff-596e438118d235cd5abb8fa69f4a1c41299556b844428f9e0238be909e46ec84
View file https://github.com/simstudioai/sim/blob/69b38572bf7ea5af4a78b3f693c60e847207bd44/apps/sim/app/api/v1/audit-logs/%5Bid%5D/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4899/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/4899/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4899/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.