Impact
Elysia cookie can be overridden by prototype pollution , eg. __proto__
Sending cookie with the follows name can override cookie value:
__proto__=%7B%22injected%22%3A%22polluted%22%7D
Patches
Patched by 1.4.27
References: 1.4.26...1.4.27
Workarounds
- Use t.Cookie validation to enforce validation value
- Prevent iterable over cookie if possible
References
https://github.com/ebadfd/elysia-cookie-proto-pollution/
Impact
Elysia cookie can be overridden by prototype pollution , eg.
__proto__Sending cookie with the follows name can override cookie value:
Patches
Patched by 1.4.27
References: 1.4.26...1.4.27
Workarounds
References
https://github.com/ebadfd/elysia-cookie-proto-pollution/