we care because you do

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
MD5 | 4bd18fda47c39420b7a2025aa50c2299

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

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    11 Files
  • 27
    May 27th
    8 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close