All reports
Medium

Tornado has incomplete validation of cookie attributes

Affected versions

Affected versions
<= 6.5.4
Fixed version
6.5.5

Description

Values passed to the domain, path, and samesite arguments of RequestHandler.set_cookie were not completely validated in versions of Tornado prior to 6.5.5. In particular, semicolons would be allowed, which could be used to inject attacker-controlled values for other cookie attributes.

Links

Credits

  • DHIRAL2908