-
-
Notifications
You must be signed in to change notification settings - Fork 115
Dictionary path construction improvement #432
Copy link
Copy link
Open
Labels
bundlingRelated to the way intlayer is bundled on application (Next.js, Vite.js, Nuxt.js, etc)Related to the way intlayer is bundled on application (Next.js, Vite.js, Nuxt.js, etc)refactorRefactor a part of the codebaseRefactor a part of the codebasesecurityrelated to security pointrelated to security point
Metadata
Metadata
Assignees
Labels
bundlingRelated to the way intlayer is bundled on application (Next.js, Vite.js, Nuxt.js, etc)Related to the way intlayer is bundled on application (Next.js, Vite.js, Nuxt.js, etc)refactorRefactor a part of the codebaseRefactor a part of the codebasesecurityrelated to security pointrelated to security point
Hi,
I noticed that the dictionary path is built using the key name. I think this could be insecure, because the key might contain a slash (/), which could potentially be used to access the file system and execute arbitrary code. I'm pretty sure there's a potential attack vector there.
CWE-73, CWE-22
Also, this would allow human-readable keys like
namespace/my-key, right now, the/breaks dictionary access.