Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
cookies vulnerable to Set-Cookie attribute injection via unvalidated domain and path options
Vulnerability Description
cookies is a Node.js library for reading and writing HTTP cookies, used by Koa via ctx.cookies. In versions before 0.9.2 the library validates the cookie name and value against character sets that reject the semicolon separator, but the domain and path options are checked only against a permissive RFC 7230 field-content matcher that allows semicolons, and both are written into the Set-Cookie header unescaped. An application that passes untrusted or request-derived data into the domain or path option can therefore inject additional cookie attributes, overriding SameSite, Secure, HttpOnly, or Domain on the cookies the application issues. This is a Set-Cookie attribute injection issue (CWE-74). The issue is fixed in cookies 0.9.2, which validates domain and path against RFC 6265 character sets. As a workaround, keep domain and path application-set rather than derived from untrusted input.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Vulnerability Type
输出中的特殊元素转义处理不恰当(注入)
Vulnerability Title
expressjs Cookies 输入验证错误漏洞
Vulnerability Description
expressjs Cookies是expressjs组织的一个解析并序列化HTTP请求中客户端状态数据的轻量级中间件。 expressjs Cookies 0.9.2之前版本存在输入验证错误漏洞,该漏洞源于domain和path选项未按严格字符集验证,允许分号且未转义写入Set-Cookie标头,可能导致攻击者注入额外cookie属性,覆盖SameSite、Secure、HttpOnly或Domain。
CVSS Information
N/A
Vulnerability Type
N/A