Zelda Buffer overflow

Discussion in '3DS - Flashcards & Custom Firmwares' started by xvishon, Jun 28, 2011.

  1. xvishon
    OP

    xvishon Member

    Newcomer
    31
    0
    Jan 31, 2009
    United States
    Found out that there is a glitch in OOT 3DS where the gravedigger will dig up unlimited hearts and even though they do not show up on screen the do give you more health past 20. Just wondering if anyone thinks picking up WAY TOO MANY heart pieces could give a good old crash or buffer overflow. Im still grabbing hearts to try it. anyone else thought of this?
     
  2. snikerz

    snikerz GBAtemp Advanced Fan

    Member
    502
    59
    Nov 30, 2008
    Lesotho
    Sounds like a good idea!

    As the ARM11 core used in the 3DS is a 32 Bit CPU, you'll need more than 2147483647 hearts to cause an integer overflow. Keep grabbin'!
     
  3. xvishon
    OP

    xvishon Member

    Newcomer
    31
    0
    Jan 31, 2009
    United States
    [​IMG] Sure. lol. That would take forever. Is there anyway to modify save files yet?
     
  4. urisma

    urisma Member

    Newcomer
    26
    2
    Jun 28, 2011
    United States
    I doubt this would cause a buffer overflow. Just an integer overflow, which might crash the 3DS, but isn't exploitable since you can't insert your own code since a buffer isn't being overflowed. Even if this did cause a buffer overflow, it would be terribly difficult to even figure out if it's exploitable. To be exploitable then you'd have to overwrite the executable code or redirect IP to somewhere that your own code is. The problem with redirecting the IP to data that is actually code is that you might run into trouble with the noexecute feature, which is present in ARM11. Not sure if the 3DS uses it or not, but it'd be another obstacle to figure out.
     
  5. xvishon
    OP

    xvishon Member

    Newcomer
    31
    0
    Jan 31, 2009
    United States
    I thought it was an idea anyway. [​IMG]
     
  6. snikerz

    snikerz GBAtemp Advanced Fan

    Member
    502
    59
    Nov 30, 2008
    Lesotho
  7. dangerboy

    dangerboy Banned

    Banned
    94
    0
    Jun 6, 2011
    United States
    BEST. POAST. EVAR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
  8. Crazy-S

    Crazy-S GBAtemp Regular

    Member
    166
    0
    Jun 18, 2007
    Gambia, The
    http://gbatemp.net
    So when this Bug is Exploitable it would be the Twilight Hack NR.2 xD

    Does this Bug appear on other Zelda Versions EU US JAP?
    Has someone tested that out?
     
  9. Rydian

    Rydian Resident Furvert™

    Member
    27,883
    8,113
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    It's likely not.
     
  10. Crazy-S

    Crazy-S GBAtemp Regular

    Member
    166
    0
    Jun 18, 2007
    Gambia, The
    http://gbatemp.net
    Don´t be such a killjoy when the Twilight hack was first encountered everyone said it won´t work blah blah and then it was the start of the Wii Homebrew
    Why is everyone so friggin pessimistic?!
    Give it atleast a try!
     
  11. enarky

    enarky owls?

    Member
    GBAtemp Patron
    enarky is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,055
    248
    Jul 31, 2003
    Afghanistan
    At least there was an actual overflow bug. This here is nothing. This is in the line of "Fucking magnets, how do they work".

    s/magnets/computers/g
     
  12. pachura

    pachura GBAtemp Advanced Fan

    Member
    566
    2
    Dec 9, 2006
    n00bz writing about buffer overflow like they understood how does it work...
     
  13. Rydian

    Rydian Resident Furvert™

    Member
    27,883
    8,113
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    You didn't read past the first post, did you?
     
  14. walk12288

    walk12288 Newbie

    Newcomer
    5
    0
    May 10, 2011
    United States
    This is completely useless aside from feeding someone's fantasy. There are two main types of buffer overflows: Heap and Stack overflows. Stack based overflows write more data to a buffer on the stack than has been allocated. This can allow for the overwriting of a function pointer or return address which could be executed to allow the running of your own code. Heap overflows affects the heap data area. Program data can be stored here and overwritten. Heap overflows are much less common, and we probably will not see one for a long time due to their complexity.

    IF the system doesn't have buffer overflow protection in it, the most likely soft-mod exploit that we would see is a string buffer overflow. These can occur if an input field pushed onto the stack is not validated. By changing the string, you could possibly jump to another area in the code. If you jump to an area you control, then you have basically hijacked the thread.

    For an overflow like this to occur a LOT of things need to line up perfectly. The system first, must not have any overflow protection. If it does, even if you found an exploit, the code execution would be halted. The second is that a developer needs to accidentally on purpose forget to validate user input that is pushed onto the stack. If both of these work, then you would need to be able to point and execute your own code. Which, on the 3DS could be a project in itself (seeing as not much is known about it currently).

    *Please note that's for a stack overflow using the stringbuffer.

    I hope that clears some things up for people...
     
  15. doyama

    doyama GBAtemp Maniac

    Member
    1,288
    3
    Nov 30, 2006
    United States
    Regrettably most people stopped reading and understanding after "Heaps and Stacks overflows" [​IMG]
     
  16. RDilus

    RDilus Member

    Newcomer
    48
    3
    Jun 12, 2007
    Netherlands
    ok this is what i am thinking
    i dont own the game yet i will get it tomorrow
    if this is really a bug
    then it might be a hole to hack it
    but it also might brick you're system when you try to hack it or anything else
    to make it long story short
    you dont know what can happen yet
    if it turns out to be a kind of way to hack the 3ds
    pls call this hax like this

    Zelda heart attack

    good name right [​IMG]
     
  17. Sheimi

    Sheimi A cute Vixen!

    Member
    1,981
    887
    Oct 22, 2009
    United States
    I am more than glad to try this glitch out. I wanna try something with this.
     
  18. Ron457x2

    Ron457x2 GBAtemp Regular

    Member
    172
    6
    May 21, 2011
    United States
    FL, Miami
    If your looking for a possible buffer overflow, here ya go [​IMG]
    [youtube]http://www.youtube.com/watch?v=0NvEHxcdWNk[/youtube]
     
  19. BrightNeko

    BrightNeko Popcorn ball

    Member
    915
    687
    Dec 11, 2010
    United States
    Texas
    now how is that even done ... an I like how that one forces people to play to the end xD want to hack your 3DS finish OoT!!
     
  20. Ron457x2

    Ron457x2 GBAtemp Regular

    Member
    172
    6
    May 21, 2011
    United States
    FL, Miami
    Nintendo makes money, we finish the game and may have an exploit,
    Its a win-win [​IMG]