Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
phith0n committed May 23, 2024
1 parent d8ce97f commit 3ad231d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nexus/CVE-2024-4956/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ After the server is started, browse `http://your-ip:8081` to see the home page o

## Exploit

Just like SpringMVC CVE-2018-1271 from Orange Tsai's [share](https://i.blackhat.com/us-18/Wed-August-8/us-18-Orange-Tsai-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out-2.pdf), Jetty's `URIUtil.canonicalPath()` also treats the empty string as a directory whih is the root case of this vulnerability:
Just like SpringMVC CVE-2018-1271 from Orange Tsai's [share](https://i.blackhat.com/us-18/Wed-August-8/us-18-Orange-Tsai-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out-2.pdf), Jetty's `URIUtil.canonicalPath()` also treats the empty string as a directory which is the root case of this vulnerability:

![](1.png)

Expand Down
4 changes: 3 additions & 1 deletion nexus/CVE-2024-4956/README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ docker compose up -d

与Orange Tsai在[Blackhat US 2018](https://i.blackhat.com/us-18/Wed-August-8/us-18-Orange-Tsai-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out-2.pdf)分享的SpringMVC CVE-2018-1271漏洞类似,Jetty的`URIUtil.canonicalPath()`函数也将空字符串认为是一个合法目录,导致了该漏洞的产生:

![](1.png)

发送如下请求来复现漏洞:

```
Expand All @@ -39,4 +41,4 @@ Cache-Control: max-age=0

可见,`/etc/passwd`已被成功读取:

![](1.png)
![](2.png)

0 comments on commit 3ad231d

Please sign in to comment.