TurboWarp / scratch-gui

TurboWarp GUI and addons

Home Page:https://turbowarp.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scratch.canFetch()がsandbox環境だとtrueを返す

arch-herobrine opened this issue · comments

再現方法
これで外部サイトをfetchしようとする

(日本語ですいません)

こんにちは、このバグについて詳しく教えていただけますか?英語に翻訳します。

えーっと
サンドボックス化を無効化すると
なぜか普通にfetchが通ってしまうんですよね
なので「fetchを許可しますか」的なポップアップなしでそのまま外部と通信できてしまうっていう

It's not enforced in the 'sandbox' because you can bypass it by simply using window.fetch

canFetch requires trust that the extension won't do that. If an extension runs in the sandbox then it is not trusted.

タイトルミスってたっぽいかな
けっこう前に開いたissueだから覚えてないや

It's not enforced in the 'sandbox' because you can bypass it by simply using window.fetch

canFetch requires trust that the extension won't do that. If an extension runs in the sandbox then it is not trusted.

ミスってはいなかったわ