High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
Merge branch 'main' into fix/safepath-windows-traversal
Luigi Agostid21cd236cbc5
diff --cc internal/web/safepath.goindex 9ed93db9,ed752d7b..6dfc608c--- a/internal/web/safepath.go+++ b/internal/web/safepath.go@@@ -36,7 -21,12 +36,13 @@@ func SafePath(base, userPath string) (sresolved = filepath.Clean(filepath.Join(absBase, userPath))}+ // Ensure resolved path is within or equal to base.+ resolved, err = filepath.Abs(resolved)+ if err != nil {+ return "", fmt.Errorf("invalid resolved path: %w", err)+ }++ // Ensure resolved path is within or equal to baseif !strings.HasPrefix(resolved, absBase+string(filepath.Separator)) && resolved != absBase {return "", fmt.Errorf("path %q escapes base directory %q", userPath, absBase)}