Files
Saurav Panda 0d59615688 security: wrap _safe_import to close __import__.__globals__ bypass
Previously __import__ was a plain closure whose __globals__ contained
this module's real __builtins__, so sandboxed code could escape via
__import__.__globals__['__builtins__']['__import__']('os').

Wrap _safe_import in _SafeBuiltin (same hardening as other builtins) so
its __globals__ attribute is not reachable from user code. Also resolve
_real_import at wrap-time rather than closing over __builtins__ to keep
the closure minimal.
2026-04-14 17:55:43 -07:00
..
2026-02-25 12:26:10 -08:00
2026-03-17 03:48:54 +00:00
2025-10-25 18:00:18 -07:00
2026-03-11 12:57:50 -07:00
2025-12-12 14:37:24 -08:00
2025-11-22 00:16:09 -08:00
2026-02-19 16:04:06 -08:00