Re: PENTEST MySQL on windows

From: Marco Ivaldi (raptor_at_0xdeadbeef.info)
Date: 02/25/05

  • Next message: Sels, Roger: "Re: PENTEST MySQL on windows"
    Date: Fri, 25 Feb 2005 13:31:56 +0100 (CET)
    To: pen-test@securityfocus.com
    
    

    > Doing a pentest on a site hosting a vulnerable verion of MySQL on a
    > Windows box. I was able to get full access to the DB and export ALL the
    > data. Anyone have any ideas on jumping to the Windows OS with full
    > access to Just the DB.

    If you are able to access the MySQL database with root/admin privileges,
    you should also be able to create a custom UDF (User Defined Function)
    enabling system()-like command execution on the underlying OS.

    Take a look the following exploit i've published this x-mas for a detailed
    privilege escalation procedure (credits for the original code go to
    ngssoftware.com):

    http://www.0xdeadbeef.info/exploits/raptor_udf.c

    I've not tested it on Windows, but i've hard this code was used as a base
    for the SpoolCLL worm that targets Windows boxes (although i've not
    verified this claim yet):

    http://news.zdnet.com/2100-1009_22-5553570.html

    You should also read this excellent paper by the guys at ngssoftware.com:

    http://www.ngssoftware.com/papers/HackproofingMySQL.pdf

    Cheers,

    -- 
    Marco Ivaldi
    Antifork Research, Inc.   http://0xdeadbeef.info/
    3B05 C9C5 A2DE C3D7 4233  0394 EF85 2008 DBFD B707
    

  • Next message: Sels, Roger: "Re: PENTEST MySQL on windows"

    Relevant Pages

    • Re: Oh dear god! Unix Unix Unix! DIE!!!!!!!!!!!
      ... I pretty much gave up on Unix. ... > MySQL and PHP even if you want to run in on Windows. ... > simplest of fucking tasks on your Shitty open source OS and software..... ...
      (comp.sys.mac.advocacy)
    • Re: free database server for desktop application with ado.net driv
      ... I've used MySQL on Windows since its 3.x days, ... So what if it is GNU and supports linux? ... You're missing the point - you do not have to compile it yourself. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Oh dear god! Unix Unix Unix! DIE!!!!!!!!!!!
      ... I pretty much gave up on Unix. ... I can do anything on Windows ... > MySQL and PHP even if you want to run in on Windows. ... > simplest of fucking tasks on your Shitty open source OS and software..... ...
      (comp.sys.mac.advocacy)
    • Re: Database recommendations for Windows app
      ... I always figured a problem with using MySQL was distribution. ... python app, and even if you could, would you then have to pay for it? ... >> I'd like to write a windows app that accesses a locally stored database.. ...
      (comp.lang.python)
    • Re: mySQL and ASP, ASP.NET and FP server extension
      ... If you're hosted on a Windows server, you can use MS Access, which is free, ... >>> Indeed, I was not thinking mySQL before, because Windows-based platform ... >>> usually comes with MS SQL and ASP and so on. ...
      (microsoft.public.frontpage.programming)