GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MySQL exploits for takeover · Issue #276 · sqlmapproject/sqlmap

MySQL exploits for takeover #276

New issue
Copy link
New issue
Copy link
Open
Open
MySQL exploits for takeover#276
Copy link
Assignees
bdamele
Labels
enhancementnormaltakeover
Milestone
1.1

Description

@SQLmapTester
SQLmapTester
opened on Dec 4, 2012
Issue body actions
No description provided.

Activity

  1. stormwin commented on Dec 4, 2012

    @stormwin
    stormwin
    on Dec 4, 2012
    More actions

    I already wrote mail to Miroslav about that 2 days ago.
    And the answer is:

    Thank you for links. Skimmed through those. Will have it on my mind.

    Kind regards,
    Miroslav Stampar

  2. bdamele commented on Dec 4, 2012

    @bdamele
    bdamele
    on Dec 4, 2012
    Member
    More actions

    http://1337day.com/exploit/19853 is a rudimentary version of what sqlmap has with regards to UDF injection since Sept 2009 (http://www.slideshare.net/inquis/expanding-the-control-over-the-operating-system-from-the-database). This technique is leveraged with --os-pwn and on Linux it does work only if the MySQL instance run as root because MySQL shared objects defining UDFs need to be in /usr/lib/mysql and this path is writable only by root. Nevertheless, on Windows it does work as MySQL runs as Local System hence the path for shared objects is writable.
    The attached "0day" exploit is limited in functionality compared to the built-in in-memory execution of Metasploit alphanumeric-encoded payload that sqlmap has already.

    I see the value of implementing http://1337day.com/exploit/19859 and eventually http://1337day.com/exploit/19852 within sqlmap.

    The rest of PoC will eventually make their way as buffer overflow exploits in Metasploit, although not exploitable via SQL injection, but direct connection to the DBMS (corresponding -d switch in sqlmap).

  3. ghost assigned
    bdamele
    on Dec 4, 2012
  4. bdamele commented on Dec 6, 2012

    @bdamele
    bdamele
    on Dec 6, 2012
    Member
    More actions

    Port of http://1337day.com/exploit/19859 to Metasploit: https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/mysql/mysql_mof.rb

    This can be ported to sqlmap, useful for OS takeover functionality when current user has FILE privilege (only), sweet so that it also works via SQLi too.

  5. bdamele
    changed the title [-]My[/-] [+]MySQL exploits for takeover[/+] on Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @bdamele
    bdamele

Labels

enhancementnormaltakeover

Type

No type

Projects

No projects

    Milestone

    • 1.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.