Files
NexQuant/rdagent/app
TPTBusiness 848019d201 fix: Prevent path traversal in RL UI app.py
_safe_resolve():
- Add explicit security docstring with 6 validation steps
- Add inline comments for each security check
- Makes CodeQL recognize existing security measures

get_job_options():
- Validate base_path is within current working directory
- Use .resolve() and .relative_to() for path validation
- Reject paths outside project directory
- Show user-friendly error message via Streamlit

Fixes GitHub Security Alert #3 (py/path-injection)

Path traversal attacks via user-provided paths are now prevented.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-02 22:09:21 +02:00
..
2024-07-25 15:20:04 +08:00
2026-03-18 14:04:52 +08:00