You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix gcloud IAM regex to match multi-segment commands (e.g., gcloud alpha projects add-iam-policy-binding)
- Fix localhost allow-rule to add boundary after hostname/port to prevent bypasses like localhost.evil.com
- Fix path traversal in classifyWriteEdit by using path.resolve before checking project membership
- Fix URL domain patterns for paste/file services to anchor to authority section
- Fix raw.githubusercontent.com regex to handle query parameters (not just $ anchor)
- Broaden chmod 777 detection to match flags before the mode (e.g., chmod -R 777)
{pattern: /\b(pastebin\.com|paste\.ee|hastebin\.com|dpaste\.org|ghostbin\.com|rentry\.co)\b/i,reason: "Paste service needs user intent verification"},
226
-
{pattern: /\b(transfer\.sh|file\.io|0x0\.st|tmpfiles\.org)\b/i,reason: "File sharing service needs user intent verification"},
227
+
{pattern: /^https?:\/\/(?:[^/]+\.)?(pastebin\.com|paste\.ee|hastebin\.com|dpaste\.org|ghostbin\.com|rentry\.co)(?:\/|$)/i,reason: "Paste service needs user intent verification"},
228
+
{pattern: /^https?:\/\/(?:[^/]+\.)?(transfer\.sh|file\.io|0x0\.st|tmpfiles\.org)(?:\/|$)/i,reason: "File sharing service needs user intent verification"},
227
229
{pattern: /\.(sh|bash|ps1|bat|cmd)(\?|$)/i,reason: "Script download needs user intent verification"},
228
-
{pattern: /\braw\.githubusercontent\.com\/.*\.(sh|py|rb|js)$/i,reason: "Raw script download needs user intent verification"}
230
+
{pattern: /\braw\.githubusercontent\.com\/.*\.(sh|py|rb|js)(?:\?|$)/i,reason: "Raw script download needs user intent verification"}
229
231
];
230
232
functionclassifyWebFetch(url){
231
233
if(!url){
@@ -236,7 +238,7 @@ function classifyWebFetch(url) {
{pattern: /\b(pastebin\.com|paste\.ee|hastebin\.com|dpaste\.org|ghostbin\.com|rentry\.co)\b/i,reason: 'Paste service needs user intent verification'},
166
-
{pattern: /\b(transfer\.sh|file\.io|0x0\.st|tmpfiles\.org)\b/i,reason: 'File sharing service needs user intent verification'},
167
+
{pattern: /^https?:\/\/(?:[^/]+\.)?(pastebin\.com|paste\.ee|hastebin\.com|dpaste\.org|ghostbin\.com|rentry\.co)(?:\/|$)/i,reason: 'Paste service needs user intent verification'},
168
+
{pattern: /^https?:\/\/(?:[^/]+\.)?(transfer\.sh|file\.io|0x0\.st|tmpfiles\.org)(?:\/|$)/i,reason: 'File sharing service needs user intent verification'},
167
169
{pattern: /\.(sh|bash|ps1|bat|cmd)(\?|$)/i,reason: 'Script download needs user intent verification'},
168
-
{pattern: /\braw\.githubusercontent\.com\/.*\.(sh|py|rb|js)$/i,reason: 'Raw script download needs user intent verification'},
170
+
{pattern: /\braw\.githubusercontent\.com\/.*\.(sh|py|rb|js)(?:\?|$)/i,reason: 'Raw script download needs user intent verification'},
0 commit comments