mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix: block ISATAP SSRF bypass via shared host/ip guard
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { isBlockedHostname, isPrivateIpAddress } from "openclaw/plugin-sdk";
|
||||
import { isBlockedHostnameOrIp } from "openclaw/plugin-sdk";
|
||||
|
||||
export type UrbitBaseUrlValidation =
|
||||
| { ok: true; baseUrl: string; hostname: string }
|
||||
@@ -53,5 +53,5 @@ export function isBlockedUrbitHostname(hostname: string): boolean {
|
||||
if (!normalized) {
|
||||
return false;
|
||||
}
|
||||
return isBlockedHostname(normalized) || isPrivateIpAddress(normalized);
|
||||
return isBlockedHostnameOrIp(normalized);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user