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

seclog-2007-001.txt

seclog-2007-001.txt
Posted Dec 29, 2007
Authored by Felix Groebert | Site seclog.de

NoseRub versions 0.5.2 and below suffer from a SQL injection vulnerability.

tags | exploit, sql injection
SHA-256 | 7c617a7f9d210fa4e8f41f2fa44f88c98fe59506a94b0cf1242e2c03c391e787

seclog-2007-001.txt

Change Mirror Download
############################################################################
-- ---------- ---- - ----------------------------
---------- ---- -- -----------------------------
------------- ---seclog- ------------------
------------ -- --- -------------------
--------- ---- -------------------
------- --------------------------
--- -------------- -----------
--- -------------- -- --- -
- --- -------------- - -- -
---- ---------
---------- ------- - - --
---------- ------ -
------- ----- - ---------
------ ---- ---------
--- -- ---
-- --
############################################################################
# seclog.de Security Advisory 2007-001 #
############################################################################


Advisory: NoseRub Login SQL Injection Vulnerability
Affected Versions: <= 0.5.2
Fixed Versions: current SVN
Risk: critical

Vendor URL: http://noserub.com
Vendor Status: informed, fixed version will be released soon
Advisory URL: http://seclog.de/pub/seclog-2007-001.txt
Advisory Status: public
Author: Felix Groebert <felix AT groebert DOT org>
Revision: 2007-12-26



Introduction
============
NoseRub is a protocol for and a sample implementation of a decentralized
social network.


Vulnerability
=============
The login script fails to validate user input. It is possible to insert
double quotes in order to escape the following SQL query:

SELECT `Identity`.`id`, `Identity`.`is_local`, [...]
FROM `identities` AS `Identity` WHERE `Identity`.`hash` = ''
AND `Identity`.`username` = "www.example.com/noserub/USERNAME"
AND `Identity`.`password` = 'f970e2767d0cfe75876ea857f92e319b' LIMIT 1

The query is generated at the end of the function check() in
app/models/identity.php:

return $this->find(array('Identity.hash' => '',
'Identity.username = "'. $username .'"',
'Identity.password' => md5($data['Identity']['password'])));


Proof of Concept
================
The SQL injection bug can be exploited by impersonating a registered user.

Go to: http://www.example.com/noserub/pages/login/
Login as: somereallogin " -- "
Password: unknownpassword

This results in the following SQL query, commenting out the fourth and fifth
lines using double dashes, thus maintaining valid SQL syntax.

SELECT `Identity`.`id`, `Identity`.`is_local`, [...]
FROM `identities` AS `Identity` WHERE `Identity`.`hash` = ''
AND `Identity`.`username` = "www.example.com/noserub/somereallogin"
-- "" AND `Identity`.`password` = 'f970e2767d0cfe75876ea857f92e319b'
LIMIT 1


Recommendation
==============
It is recommended to upgrade to NoseRub > 0.5.2.
A preliminary patched version of the affected file can be downloaded from
SVN revision 515:
http://noserub.googlecode.com/svn/trunk/app/models/identity.php


Disclosure Timeline
===================
2007-12-19 Problem found
2007-12-19 Notified developers
2007-12-20 Received response with proposed fix
2007-12-20 Sent acknowledgment concerning fix
2007-12-26 Released advisory to public


About seclog.de
===============
seclog.de is not your average latest-vulnerability-weblog. We try to
deliver quality commentary on recent security news and issues. Our focus
ranges from secure programming, exploitation techniques, applied
cryptography, network security, privacy, biometrics to social engineering:
from the organizational and human layers to the physical and application
layers. The weblog is partly in english and german. Check it out.


Disclaimer and Copyright
========================
The author is not responsible for the misuse of the information provided in
this security advisory. Advisories are a service to the professional
security community. There are NO WARRANTIES with regard to this information.
Any application or distribution of this information constitutes acceptance
AS IS, at the user's own risk. This information is subject to change without
notice.

This advisory Copyright (C) 2007 Felix Groebert. Permission is hereby granted
to redistribute this advisory, providing that no changes are made and that
the copyright notices and disclaimers remain intact.

############################################################################
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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