forked from XiaoMo/ChatGPT-Next-Web
605dd72354
Severity : High Sanitize the 'res' object before logging it in the 'check' method of useSyncStore to prevent log injection attacks. The 'res' object is now sanitized by extracting only the necessary properties ('status', 'statusText', and 'headers') and logging the sanitized object instead. This ensures that only safe and expected data is logged, mitigating the risk of log injection vulnerabilities. |
||
---|---|---|
.. | ||
access.ts | ||
chat.ts | ||
config.ts | ||
index.ts | ||
mask.ts | ||
prompt.ts | ||
sync.ts | ||
update.ts |