HF RL Explorer

Task: Implement Secure Directory Containment Check

Task: Implement Secure Directory Containment Check: a task in Terminal-Lego-15k (Harbor dataset). You are building a template system that allows users to include files from disk. To prevent path traversal attacks (where malicious users could access sensitive files like /etc/passwd ), you need to…

The task

You are building a template system that allows users to include files from disk. To prevent path traversal attacks (where malicious users could access sensitive files like `/etc/passwd`), you need to implement a security function that validates whether a requested file path is truly contained within an allowed…

Part of PrimeIntellect/Terminal-Lego-15k.