mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-01 12:25:53 +01:00
Adds an opt-in `browse --public-only` mode (or `BROWSE_PUBLIC_ONLY=1`): every connection the browser makes goes through a guard that refuses loopback, private, link-local, cloud-metadata and this machine's own network addresses. Why: an agent reading an untrusted page should not let that page reach services on your machine or network (#4812). Default mode is unchanged. Nothing to do unless you want the mode; see BROWSER.md "Public-only mode". Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1b/red-team#1 reader=red-team Review-Finding: p1b/red-team#2 reader=red-team Review-Finding: p1v/outside-voice#1 reader=outside-voice Review-Finding: p1v/outside-voice#2 reader=outside-voice Review-Finding: p1v/outside-voice#3 reader=outside-voice Review-Finding: p1v/outside-voice#4 reader=outside-voice Review-Finding: p1v/adversarial-native#1 reader=adversarial-native Review-Finding: p1v/adversarial-native#2 reader=adversarial-native Review-Finding: p1v/adversarial-native#3 reader=adversarial-native Review-Finding: p1v/adversarial-native#5 reader=adversarial-native Review-Finding: p2/specialist-batched#1 reader=specialist-batched Review-Finding: p2/red-team#1 reader=red-team
This commit is contained in:
1 parent
4a40464ea7
commit
fb4474ec6c
46 files changed
+1396
-78
No files matched your search
@@ -116,6 +116,7 @@ Some steps require action on a site the user controls: registering an API key, c
|
||||
_A=aside; command -v aside >/dev/null || _A=$(command -v ~/.local/bin/aside)
|
||||
if [ "${GSTACK_SKIP_ASIDE:-}" = "1" ] || [ -z "$_A" ]; then
|
||||
echo "NEEDS_ASIDE: ${GSTACK_PLATFORM:-$(uname)}"
|
||||
elif case ${BROWSE_PUBLIC_ONLY-} in ''|0|false|off) false;; esac; then echo "ASIDE_SKIPPED: BROWSE_PUBLIC_ONLY"
|
||||
else
|
||||
_rc=0; _o=$(_gs_d "$_A" repl 'console.log("ASIDE_READY " + pwd)' 2>&1) || _rc=$?
|
||||
case "$_rc" in
|
||||
|
||||
Reference in new issue
Block a user