Lucene search
K

PacketFence Network Access Controller Cross Site Scripting

🗓️ 21 Dec 2009 00:00:00Reported by K053Type 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 14 Views

Injection Flaw in PacketFence Network Access Controller, PacketFence NAC Cross Site Scriptin

Code
`# Title : Injection Flaw in PacketFence Network Access Controller  
# Date : 20-12-2009  
# Author : K053  
# Tested on : Private Networks  
# Download : http://www.packetfence.org/download/releases.html  
______________________________________________________________________________________________  
Note :  
------  
PacketFence is a fully supported, Free and Open Source network access control (NAC) system.  
PacketFence is actively maintained and has been deployed in numerous large-scale institutions  
over the past years. It can be used to effectively secure networks - from small to very large  
heterogeneous networks.  
______________________________________________________________________________________________  
Bug [ Login.php ] :  
-------------------  
function check_input($input){  
if(preg_match("/^[\@a-zA-Z0-9_\:\,\(\)]/", $input) && strlen($input) <= 15){  
return true;  
}  
else{  
print "Invalid parameter: $input<br>";  
return false;  
}  
}  
  
//TODO are we being too difficult on what we accept as a password? ie: pass starting with ; is invalid  
function check_sensitive_input($input){  
if(preg_match("/^[\@a-zA-Z0-9_\:\,\(\)]/", $input) && strlen($input) <= 15){  
return true;  
}  
else{  
print "Invalid sensitive parameter<br>";  
return false;  
}  
}  
______________________________________________________________________________________________  
Poc :  
-----  
The Function fail on input validation on passed data, application is vulnerable to injection flaw like  
Xss , Html Code injection ... :  
  
Attacker can perform attack via post method : manipulate passed data or just enter something like  
<script>alert(0)</script> in username filed .  
______________________________________________________________________________________________  
  
`

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