qinguoyi TinyWebServer Stack-Based Buffer Overflow Vulnerability

Vulnerability

A critical stack-based buffer overflow vulnerability has been identified in qinguoyi TinyWebServer versions through 1.0. The issue arises in the file '/http/http_conn.cpp', where the 'name' and 'password' fields, each 100 bytes in size, are vulnerable to overflow. The server improperly handles user input by copying it into these fields without any validation, allowing for a stack overflow condition. This vulnerability can be exploited remotely, without requiring authentication.

Impact

Exploitation of this vulnerability leads to a stack-based buffer overflow, a condition where the buffer being overwritten is allocated on the stack, potentially allowing for arbitrary code execution or causing a denial-of-service condition.

Reproduction

To reproduce this vulnerability, send a request that includes the 'name' and 'password' fields with crafted input that exceeds the buffer size. The server will read the input and copy it into the stack-based fields without proper checks, causing a buffer overflow.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
8.7
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.