Lucene search
K

new.phf.txt

🗓️ 14 Nov 2000 00:00:00Reported by PrOtOnType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 22 Views

Vulnerability in phf allows buffer overflow and code execution due to unchecked loop conditions.

Code
`PROBLEM:  
  
...  
  
main(int argc, char *argv[]) {  
entry entries[64];  
  
...  
  
for(x=0;cl[0] != '\0';x++) {  
m=x;  
getword(entries[x].val,cl,'&');  
plustospace(entries[x].val);  
unescape_url(entries[x].val);  
getword(entries[x].name,entries[x].val,'=');  
}  
  
...  
  
The `for' loop does not verify that x is less than 64.  
The `entries' struct being a flat data type will cause  
any data written into the 64th entry to overwrite the  
return pointer, allowing malicious code to be executed.  
  
I have a working exploit for Linux/ix86 that I /may/ post to  
bugtraq when system administrators has had a chance to  
fix their servers.  
  
Yes, I know phf is an old script but it is still fairly common.  
  
This bug is unrelated to the bad chars filter problem that  
is the best known vulnerability of phf.  
  
VULNERABLE VERSIONS:  
  
All known versions of phf (patched and unpatched)  
(excluding fakes, ofcourse)  
  
TO FIX:  
  
Locate and DELETE all versions of phf.  
Do NOT rename the executable, crackers might discover the  
new name and exploit it (this is not uncommon).  
  
/proton  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Nov 2000 00:00Current
7.4High risk
Vulners AI Score7.4
22