OmniHTTPD Buffer Overflow Vulnerability

BID:739

Info

OmniHTTPD Buffer Overflow Vulnerability

Bugtraq ID: 739
Class: Boundary Condition Error
CVE:
Remote: Yes
Local: No
Published: Oct 22 1999 12:00AM
Updated: Oct 22 1999 12:00AM
Credit: Posted to BugTraq by UNYUN <[email protected]> on Oct 22, 1999.
Vulnerable: Omnicron OmniHTTPD 2.4 Pro
Omnicron OmniHTTPD 1.1
Not Vulnerable:

Discussion

OmniHTTPD Buffer Overflow Vulnerability

There is a remotely exploitable buffer overflow vulnerability in the CGI program "imagemap", which is distributed with Omnicron's OmniHTTPD. During operations made on arguments passed to the program, a lack of bounds checking on a strcpy() call can allow for arbitrary code to be executed on the machine running the server.

Exploit / POC

OmniHTTPD Buffer Overflow Vulnerability

x

Solution / Fix

OmniHTTPD Buffer Overflow Vulnerability

Solution:
Since source code for the imagemap program is supplied, UNYUN of Shadow Penguin Security suggests that checking for oversized arguments be added to the code:

void main(int argc, char **argv)
{
----------- omit ----------
char OutString[100];
----------- omit ----------
if(argc >= 2) {
//
// extract x & y from passed values
//
strcpy(OutString, argv[1]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Buffer overflow caused by this strcpy().
This overflow can be avoided if you put the following code before
strcpy().

if (strlen(argv[1])>99) exit

There are no known vendor provided solutions to this problem.

References

OmniHTTPD Buffer Overflow Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report