In game sql injection menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    mmhelm's Avatar Member
    Reputation
    25
    Join Date
    Aug 2007
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    In game sql injection

    Turn on the equipment manager, the equipment name field is subject to injection at the moment. Soon to be fixed to take advantage of it fast.

    (Brief because most people dont know sql, and if they do they will know how to take advantage of this.)

    tested on ArcEmu btw. might be other emulators with this exploit open too.
    Last edited by mmhelm; 10-21-2010 at 10:56 PM.

    In game sql injection
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    How do you do an SQL injection from in game? Are you just tampering with the data sent and received when it queries the database upon opening the equipment manager, or is there actually a way to SQL inject from inside the game?

    Edit: Looks like it's about to be fixed anyway:

    Code:
    Index: src/arcemu-world/EquipmentSetMgr.cpp
    ===================================================================
    --- src/arcemu-world/EquipmentSetMgr.cpp        (revision 3738)
    +++ src/arcemu-world/EquipmentSetMgr.cpp        (working copy)
    @@ -128,7 +128,7 @@
                            ss << ownerGUID << "','";
                            ss << set->SetGUID << "','";
                            ss << set->SetID << "','";
    -                       ss << set->SetName << "','";
    +                       ss << CharacterDatabase.EscapeString(string(set->SetName)) << "','";
                            ss << set->IconName << "'";
     
                            for( uint32 j = 0; j < set->ItemGUID.size(); ++j ){
    Last edited by stoneharry; 10-22-2010 at 02:09 AM.

  3. #3
    mmhelm's Avatar Member
    Reputation
    25
    Join Date
    Aug 2007
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Indeed, that's why I figured I would post since its being fixed soonish, great havoc for the time being :P


    You run the sql from inside of the equipment name field, as I said above. Basically, it allows you to run a query in that box on the database. Probably something like

    Code:
    ; REPLACE INTO
    it tampers with nothing, just a mistake while coding. - basically its a unsecured input to the DB thats ran on equipment save, you would have to probably terminate that code you posted above and then input it, see the rough example ^

    http://www.partyvan.info/index.php?t...on&redirect=no <- rough examples and explanations

    Meh, could probably add a sql user with it to the top private servers if they are dumb enough to use root access or something similar.

    /sigh fixed with http://cia.vc/stats/project/ArcEmu/.message/56fad2
    it'll still be up on servers reluctant to update to the latest rev.
    Last edited by mmhelm; 10-22-2010 at 04:53 PM.

  4. #4
    hamcakee's Avatar Corporal
    Reputation
    15
    Join Date
    Oct 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A long time ago I tried for hours to do this on my own server without the escape string. It is pretty tricky with the very short character limit in that field in the UI. You can however overcome this with a macro

    Code:
    /script SaveEquipmentSet("name", iconIndex)
    It does let you create equipment sets up to a significantly higher character limit, however I still couldn't ever inject anything. Hopefully this helps and someone figures out how to do this.

  5. #5
    Johnny Zoo's Avatar Sergeant
    Reputation
    7
    Join Date
    Apr 2010
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hamcakee View Post
    A long time ago I tried for hours to do this on my own server without the escape string. It is pretty tricky with the very short character limit in that field in the UI. You can however overcome this with a macro

    Code:
    /script SaveEquipmentSet("name", iconIndex)
    It does let you create equipment sets up to a significantly higher character limit, however I still couldn't ever inject anything. Hopefully this helps and someone figures out how to do this.
    That command has a limit of 30 characters =/ So any useful query short enough ?

  6. #6
    bobtehnerd's Avatar Active Member
    Reputation
    31
    Join Date
    May 2010
    Posts
    38
    Thanks G/R
    3/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well you could remove a item or a object with 30 characters

  7. #7
    Rebex's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can i create an in-game's injection for unban an account in a Trinity server?

  8. #8
    l0l1dk's Avatar Elite User

    Reputation
    499
    Join Date
    Sep 2010
    Posts
    342
    Thanks G/R
    1/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Rebex View Post
    Can i create an in-game's injection for unban an account in a Trinity server?
    I don't know very much about SQL, but I think you could.

  9. #9
    thebigman's Avatar Contributor Reliable Trader
    CoreCoins Purchaser
    Reputation
    89
    Join Date
    Dec 2008
    Posts
    605
    Thanks G/R
    2/0
    Trade Feedback
    26 (96%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Rebex View Post
    Can i create an in-game's injection for unban an account in a Trinity server?
    the answer is yes, as long as its a short amount of characters

  10. #10
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The answer is actually no, this was not even an issue for TrinityCore, it was for ArcEmu, and it was fixed in 3738, over 300 revisions ago.
    Let this thread die, the exploit is fixed.
    hey ervyone whats up gamboys

Similar Threads

  1. [Database] SQL injection on priv server sites
    By fedabis in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 12-17-2010, 05:51 PM
  2. [Trinity] Can you try and SQL inject my account creation page
    By Himynameiseric in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 09-30-2010, 05:11 PM
  3. Adding SQL Game Objects error
    By bokou in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 05-07-2009, 07:19 AM
All times are GMT -5. The time now is 05:43 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search