Skip to content

Commit a71f906

Browse files
committed
fix(browser): guard existing-session screenshots
1 parent 59b5058 commit a71f906

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Docs: https://docs.openclaw.ai
5353
### Fixes
5454

5555
- Diagnostics: grant the internal diagnostics event bus to official installed diagnostics exporter plugins, so npm-installed `@openclaw/diagnostics-prometheus` can emit metrics without broadening the capability to arbitrary global plugins. Fixes #76628. Thanks @RayWoo.
56+
- Browser: enforce strict SSRF current-URL checks before existing-session screenshots, matching existing-session snapshot handling. Thanks @vincentkoc.
5657
- Active Memory: give timeout partial transcript recovery enough abort-settle headroom so temporary recall summaries are returned before cleanup. Thanks @vincentkoc.
5758
- Doctor/config: restore legacy group chat config migrations for `routing.allowFrom`, `routing.groupChat.*`, and `channels.telegram.requireMention` so upgrades keep WhatsApp, Telegram, and iMessage group mention gates and history settings instead of leaving configs invalid or silently blocked. Thanks @scoootscooob.
5859
- CLI/update: make package-update follow-up processes write completion results and exit explicitly, so Windows packaged upgrades do not hang after the new package finishes post-core plugin work. Thanks @vincentkoc.

‎extensions/browser/src/browser/routes/agent.snapshot.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,13 @@ export function registerBrowserAgentSnapshotRoutes(
365365
enforceCurrentUrlAllowed: true,
366366
run: async ({ profileCtx, tab, cdpUrl }) => {
367367
if (getBrowserProfileCapabilities(profileCtx.profile).usesChromeMcp) {
368+
const ssrfPolicyOpts = browserNavigationPolicyForProfile(ctx, profileCtx);
369+
if (ssrfPolicyOpts.ssrfPolicy) {
370+
await assertBrowserNavigationResultAllowed({
371+
url: tab.url,
372+
...ssrfPolicyOpts,
373+
});
374+
}
368375
if (element) {
369376
return jsonError(res, 400, EXISTING_SESSION_LIMITS.snapshot.screenshotElement);
370377
}

0 commit comments

Comments
 (0)