Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-0114 PoC — Cisco node-jose open source library 数据伪造问题漏洞

Source
Associated Vulnerability
Title:Cisco node-jose open source library 数据伪造问题漏洞 (CVE-2018-0114)
Description:Cisco node-jose open source library是美国思科(Cisco)公司的一个基于Web浏览器和node.js的服务器的JSON对象签名和加密的开源库。 Cisco node-jose open source library 0.11.0之前的版本中存在安全漏洞,该漏洞源于node-jose使用了JSON Web Signature (JWS)标准。远程攻击者可通过移除原签名伪造有效的JWS对象利用该漏洞重新签名令牌。
Description
POC for CVE-2018-0114 written in Go
Readme
# CVE-2018-0114 POC

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 could 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.

https://nvd.nist.gov/vuln/detail/CVE-2018-0114

## Usage

```bash
go run main.go -payload admin
```

## References

https://openid.net/specs/draft-jones-json-web-key-03.html#anchor8

![](https://raw.githubusercontent.com/adityathebe/POC-CVE-2018-0114/master/rsa-specification.png)
File Snapshot

[4.0K] /data/pocs/04256bb9a65f0d3acd5705bf0fb793ab535b990e ├── [3.1K] main.go ├── [1.0K] README.md └── [ 61K] rsa-specification.png 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.