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

AS3FlexDB Login Information Disclosure / SQL Execution

AS3FlexDB Login Information Disclosure / SQL Execution
Posted Feb 9, 2010
Authored by DungPQ

AS3FlexDB suffer from remote database login information disclosure and remote SQL execution vulnerabilities.

tags | exploit, remote, vulnerability, sql injection, info disclosure
SHA-256 | a71584c555015ae94f9d1cafc9030ad5df84414d1d852ccd635bf87b3055dc0d

AS3FlexDB Login Information Disclosure / SQL Execution

Change Mirror Download
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$ AS3FlexDB Database Login Information Disclosure & Remote SQL Excution
$$$
$$$ || License: Free
$$$ || Language: English
$$$ AS3FlexDB || Cost: $0
$$$ || Platform: Flash Player
$$$ || Demo: http://www.sephiroth.it/tutorials/flashPHP/as3flexdb/files/FlexDBExample.zip
$$$
$$$ || Name: ~Fyodor (aka DungPQ)
$$$ Credit || Email: quangdung181188[at]gmail.com
$$$ || WWW: http://fyodor.co.cc
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

[$] Vulnz Description :
1/ Database Login Information Disclosure
AS3FlexDB project is a open source library that allows Adobe Flex applications to connect to a MySQL server. This library use AMFPHP to access a MySQL server.
AS3FlexDB let you write all your SQL's in FLEX and not in PHP. More exactly you can do almost every action on a table in FLEX without making new classes in PHP and access it.
When developer write FLEX app using AS3FlexDB, he must specify database login information in sourcecode (MXML), it will be compile to SWF when publish to internet. Yaa, we can say database login information is stored in SWF file, but anyone can decode this SWF file (using some Flash decode program, I'm using SWFDecompiler) and get this information !
For example, with their project example (http://www.sephiroth.it/tutorials/flashPHP/as3flexdb/files/FlexDBExample.zip), Open /FlexDBExample/bin-debug/FlexDBExample.swf with SWFDecompiler, you can see database login information:

public function _FlexDBExample_ConnectionData1_i() : ConnectionData
{
var _loc_1:* = new ConnectionData();
c1 = _loc_1;
_loc_1.name = "mxml_conn1";
_loc_1.host = "localhost";
_loc_1.db = "test";
_loc_1.username = "root";
_loc_1.password = "root";
return _loc_1;
}

As you can see, Database host is "localhost" with Username "root" and Password "root", Database name is "test"

2/ Remote SQL Excution
But when developer ofuscator SWF file, we can get hard to know database login information. Ok, no problem, AS3FlexDB uses AMFPHP to send/receive data between Flash and PHP Backend, and, OMG, it allow query SQL command directly from Flash. It means we can use some TCP sniffer or just Connection sniffer (I recommend Firebug for Firebox) to get Gateway URL, when get the Gateway URL, we will emulate AMF request contain our SQL command and send to Gateway.

[$] ~Fyodor - The Still Lake
Login or Register to add favorites

File Archive:

July 2024

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