mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 19:54:32 +00:00
fix(security): harden untrusted web tool transcripts
This commit is contained in:
@@ -444,6 +444,11 @@ async function runWebFetch(params: {
|
||||
title: wrappedTitle,
|
||||
extractMode: params.extractMode,
|
||||
extractor: "firecrawl",
|
||||
externalContent: {
|
||||
untrusted: true,
|
||||
source: "web_fetch",
|
||||
wrapped: true,
|
||||
},
|
||||
truncated: wrapped.truncated,
|
||||
length: wrapped.wrappedLength,
|
||||
rawLength: wrapped.rawLength, // Actual content length, not wrapped
|
||||
@@ -483,6 +488,11 @@ async function runWebFetch(params: {
|
||||
title: wrappedTitle,
|
||||
extractMode: params.extractMode,
|
||||
extractor: "firecrawl",
|
||||
externalContent: {
|
||||
untrusted: true,
|
||||
source: "web_fetch",
|
||||
wrapped: true,
|
||||
},
|
||||
truncated: wrapped.truncated,
|
||||
length: wrapped.wrappedLength,
|
||||
rawLength: wrapped.rawLength, // Actual content length, not wrapped
|
||||
@@ -560,6 +570,11 @@ async function runWebFetch(params: {
|
||||
title: wrappedTitle,
|
||||
extractMode: params.extractMode,
|
||||
extractor,
|
||||
externalContent: {
|
||||
untrusted: true,
|
||||
source: "web_fetch",
|
||||
wrapped: true,
|
||||
},
|
||||
truncated: wrapped.truncated,
|
||||
length: wrapped.wrappedLength,
|
||||
rawLength: wrapped.rawLength, // Actual content length, not wrapped
|
||||
|
||||
Reference in New Issue
Block a user