LightRAG/lightrag/api/routers
yangdx 60777d535b fix: prevent Path Traversal vulnerability in upload endpoint
- Add sanitize_filename() function to validate and clean uploaded filenames
- Remove path separators, traversal sequences, and control characters
- Verify final paths stay within input directory using Path.resolve()
- Return HTTP 400 errors for unsafe filenames
- Prevents directory traversal attacks like ../../../etc/passwd
2025-06-27 02:33:05 +08:00
..
__init__.py split lightrag_servery.py to smaller files 2025-02-20 03:26:39 +08:00
document_routes.py fix: prevent Path Traversal vulnerability in upload endpoint 2025-06-27 02:33:05 +08:00
graph_routes.py Fix linting 2025-04-14 13:29:56 +08:00
ollama_api.py Fix linting 2025-06-11 16:36:05 +08:00
query_routes.py Fix linting 2025-05-22 09:59:53 +08:00