
python2.7 script for JWT generation
用于JWT生成的python2.7脚本
CVE-2018-0114
A vulnerability in the Cisco node-jose open source library before 0.11.0 could allow an unauthenticated, remote attacker to re-sign tokens using a key that is embedded within the token. The vulnerability is due to node-jose following the JSON Web Signature (JWS) standard for JSON Web Tokens (JWTs). This standard specifies that a JSON Web Key (JWK) representing a public key can be embedded within the header of a JWS. This public key is then trusted for verification.
An attacker can exploit this by forging valid JWS objects by removing the original signature, adding a new public key to the header, and then signing the object using the (attacker-owned) private key associated with the public key embedded in that JWS header.
Cisco node-jose 开源库 0.11.0 之前版本中的一个漏洞可能允许未经认证的远程攻击者使用令牌中嵌入的密钥重新签名令牌。该漏洞源于 node-jose 遵循用于 JSON Web Token (JWT) 的 JSON Web Signature (JWS) 标准。该标准规定,代表公钥的 JSON Web Key (JWK) 可以嵌入到 JWS 的头部中,该公钥随后用于验证。
攻击者可以通过移除原始签名、在头部添加新的公钥,然后使用与该 JWS 头部中嵌入的公钥相关联的(攻击者拥有的)私钥对对象进行签名,从而伪造有效的 JWS 对象来利用此漏洞。