fix(server): apply the outbound address policy to remote cert pinning
The remote certificate fetch now dials through the same netsafe guard as the REALITY target scan. A private or loopback endpoint is refused unless the request carries allowPrivate; the inbound form asks the operator to confirm and retries with the opt-in.
This commit is contained in:
1 parent
d31465e37b
commit
ede275e4dc
8 files changed
+87
-8
No files matched your search
@@ -7797,6 +7797,10 @@
|
||||
"server": {
|
||||
"type": "string",
|
||||
"description": "Remote server as domain or domain:port (default port 443), e.g. cloudflare-dns.com."
|
||||
},
|
||||
"allowPrivate": {
|
||||
"type": "boolean",
|
||||
"description": "Ping a private/internal/loopback server (LAN, Docker service name). Default false (SSRF guard blocks it and the error response sets obj.privateTarget=true)."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -7797,6 +7797,10 @@
|
||||
"server": {
|
||||
"type": "string",
|
||||
"description": "Remote server as domain or domain:port (default port 443), e.g. cloudflare-dns.com."
|
||||
},
|
||||
"allowPrivate": {
|
||||
"type": "boolean",
|
||||
"description": "Ping a private/internal/loopback server (LAN, Docker service name). Default false (SSRF guard blocks it and the error response sets obj.privateTarget=true)."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -876,6 +876,13 @@ export const sections: readonly Section[] = [
|
||||
type: 'string',
|
||||
desc: 'Remote server as domain or domain:port (default port 443), e.g. cloudflare-dns.com.',
|
||||
},
|
||||
{
|
||||
name: 'allowPrivate',
|
||||
in: 'body (form)',
|
||||
type: 'boolean',
|
||||
optional: true,
|
||||
desc: 'Ping a private/internal/loopback server (LAN, Docker service name). Default false (SSRF guard blocks it and the error response sets obj.privateTarget=true).',
|
||||
},
|
||||
],
|
||||
body: 'server=cloudflare-dns.com',
|
||||
response: '{\n "success": true,\n "obj": [\n "e8e2d3..."\n ]\n}',
|
||||
|
||||
Loaded 3 of 8 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user