PSX-SCENE Forum Discussion for Sony PlayStation/PsOne/PS2/PS3/PSP/PS VITA
  • [Update 2]Metldr Exploit leaked by Unknown Group

    Well, the moment we have all been waiting for has finally come. It seems that long await metldr exploit has been leaked. However not much can be said by the program that is used itself or the team behind its release. However this would not probably mean anything you the end-user or the average NOOB, but this maybe a step forward to the likes of obtaining the private keys and eventually a CFW for higher firmware i.e 3.72, 3.73 etc.




    Here is a quote from PS3Crunch.

    Program: metldr838exploit
    Author: Unknown
    Usage: Unknown
    Reason: Unknown
    Before posting we had one our PS3 Crunching Developers look it over, and it seems to be a set of 'C' code and headers and an compiled ELF and SELF that exploits the 'chain of trust' to dump an 'unecrypted' version of your PS3 'metldr'.
    [UPDATED] See spoiler

    Spoiler



    It seems that mathieulh has been claiming that he he had the exploit and has now revealed how to use it.

    [UPDATE 2]
    New updates come about, as we now see a tutorial written out by PS3 developer lunuxx, who brought you paintown for the PS3.

    ***Warning*** This method will not give you CFW, this is only intended for the advanced users of the scene and for developers only. Messing up the EID will end up in getting your PS3 bricked please use caution when attempting this. PSX-Scene is in no way responsible if you mess up console during this process

    Tutorial

    Spoiler



    ***Warning*** This method will not give you CFW, this is only intended for the advanced users of the scene and for developers only. Messing up the EID will end up in getting your PS3 bricked please use caution when attempting this. PSX-Scene is in no way responsible if you mess up console during this process

    Once again please do take note that this intended towards the developers of the scene and not our end-user or average jailbreaker, especially those that are new to the scene. We here at PSX-Scene are posting this as a rumor as nothing has yet been confirmed.

    Download
    metldr838exploit

    Source:
    EXCLUSIVE: PS3 'Metldr' Exploit been 'leaked'

    Via Mathieulh at lan.st
    Comments 215 Comments
    1. No0bZiLLa's Avatar
      No0bZiLLa -
      nice the ps3 is owned, lol

      oh and on a side note, noone is expecting to be paid for this finding...... its open sourced
    1. ogina's Avatar
      ogina -
      finaly
    1. Gazra's Avatar
      Gazra -
      They are files from August, not really a leak or an exclusive just another load of files that where not brought to surface until recently.

      Here is a screenshot of when they where modified.

      This looks as if it is for 3.50 and thats it!

      Attachment 31549

      So dont get your hopes up unless this is a the ACTUAL file for >3.60


    1. Tranced's Avatar
      Tranced -
      When I read any news regarding the exploitation of metldr or isolated loaders it makes warm and fuzzy inside.
    1. Warning's Avatar
      Warning -
      Quote Originally Posted by Gazra View Post
      They are files from August, not really a leak or an exclusive just another load of files that where not brought to surface until recently.

      Here is a screenshot of when they where modified.

      This looks as if it is for 3.50 and thats it!

      Attachment 31549


      So dont get your hopes up unless this is a the ACTUAL file for >3.60

      Metldr is the same in 3.72 as in 3.50. You just need to be on 3.50 to dump it.
    1. Tranced's Avatar
      Tranced -
      @Gazra I noticed the same when checking the files once I had downloaded them. But remember the QA Flag saga. It was known by devs a long while until someone brought it to our attention.
    1. Gazra's Avatar
      Gazra -
      Quote Originally Posted by Warning View Post
      Metldr is the same in 3.72 as in 3.50. You just need to be on 3.50 to dump it.
      If that is the case then i withdraw what i said, but how is it that these files were not released until now hmmmm kinda weird.
    1. atko2's Avatar
      atko2 -
      Lets hope this is just the start and i hope the group stays unknown. Things are looking up
    1. yayes's Avatar
      yayes -
      a rumor can become true
    1. xipi's Avatar
      xipi -
      Quote Originally Posted by Gazra View Post
      If that is the case then i withdraw what i said, but how is it that these files were not released until now hmmmm kinda weird.
      theres a RUMOR on the title, so you re free to thinks anything you want weird
    1. Tranced's Avatar
      Tranced -
      Code:
      module_init(metldrpwn_init);module_exit(metldrpwn_exit);MODULE_LICENSE("GPL");MODULE_DESCRIPTION("SPP verifier direct");MODULE_AUTHOR("glevand");
      GLEVAND. Say no more.
    1. DarkMega's Avatar
      DarkMega -
      Same talk every time! Every month a new method is released to find the ps3 newest firmware keys. Since June all this news come with a note like this: "this maybe a step forward to the likes of obtaining the private keys and eventually a CFW for higher firmware i.e 3.72, 3.73 etc." And nothing is release! Stop giving false hopes!
    1. noshi's Avatar
      noshi -
      Quote Originally Posted by Tranced View Post
      Code:
      module_init(metldrpwn_init);module_exit(metldrpwn_exit);MODULE_LICENSE("GPL");MODULE_DESCRIPTION("SPP verifier direct");MODULE_AUTHOR("glevand");
      GLEVAND. Say no more.
      glevland wrote the original module, but it has since been modified by our anonymous friend.


      UPDATE: RichDevX thinks it's fake:
      https://mobile.twitter.com/#!/RichDe...64258202492929
    1. Neptune1988's Avatar
      Neptune1988 -
      Quote Originally Posted by noshi View Post
      glevland wrote the original module, but it has since been modified by our anonymous friend.


      UPDATE: RichDevX thinks it's fake:
      https://mobile.twitter.com/#!/RichDe...64258202492929
      It's real. Math confirmed: https://twitter.com/#!/Mathieulh/
    1. noshi's Avatar
      noshi -
      Quote Originally Posted by Neptune1988 View Post
      It's real. Math confirmed: https://twitter.com/#!/Mathieulh/
      Yeah, here's a pastie where he explains how it's supposed to work: #2832161 - Pastie

      Code:
      PASTEBIN FROM MATHIEULH:
      ORIGINAL LINK: http://lan.st/showthread.php?p=22446
      
      Because some ungrateful person leaked my metldr exploit files I will now be explaining how it actually works, see this as my ultimate release of all times for an ungrateful scene (and scenes in the future) 
      
      That's about how I am pissed right now, because of course the person that leaked these files has no idea of how they actually work.
      
      How to pwn metldr the "easy" way:
      This is most likely how geohot exploited it in the first way, this takes (give or take) about 10 minutes to be performed. (yeah, not so much of a "I hacked the ps3 all on my own work, especially not when it partially relies on Segher's work, one of the reason geohot never shared the way he exploited metldr to anyone)
      
      I will assume here, that you do not have the loader keys that were made readily available by geohot. This little tutorial also assumes that you have a working .self generating tool
      
      Now You want to gain code execution to metldr, you know that metldr loads loaders to its own space, but you cannot run a loader because the loader needs to be signed and even though you know about the sign fail that Segher introduced at the CCC, you cannot use it because you don't have decrypted signatures to calculate a private key and to get signatures you need keys which you are currently trying to dump, so far you are stuck in a chicken and egg scenario.
      
      The question is, do you really need keys to get a decrypted signature ? 
      Well the real answer is no, thanks to a nifty fail that sony left in in metldr (and the bootloader), you can have the ldr to decrypt the metadata for you, isn't that neat ?
      
      Here's how it works:
      
      STEP I)
      
      
      In a self file, at address 0x0C a value is used to calculate where the metadata is going to be decrypted, the "offset" is at self header + 0x0C
      its the "meta header offset" in the SCE structure, it takes the SCE offset + that value, so what you have to do is to have a calculation that is equal to 0x3E01F0 which happens to be where metldr copies over the shared metadata from the mailbox (which is sent over by the ppu), the trick is to have metldr to decrypt the metadata located at.
      So basically you have to 
      1) set the offset += 0x2000
      dump shared lsa
      and keep increasing 0x2000
      until somewhere in the shared lsa changes 0x40 byte
      2) when it changes 0x40 bytes, you can add/subtract the proper amount to make it decrypt the proper locations
      3) then dump shared lsa and we have decrypted header
      knowing that metldr uses SCE header 0xECF0, you could calculate it knowing the address 0x3E01F0 - 0xECF0 = the value you would patch at SCE header + 0x0C
      
      ROM:0000F6C0 D2 68 87 E6 metadata_erk: .int 0xD26887E6 ; DATA XREF: ROM:0000F178o
      for example in CECHA , the address you want to decrypt it to is 0x3E1F0
      so it should be 0x3E1F0 - 0xF6C0
      
      
      Once you get the decrypted header, you have the key to decrypt the rest of the metadata. Here you go, you have your decrypted signature.
      
      So far so good, now what's next ?
      
      STEP II) 
      
      Contrary to popular beliefs, you do not need to know the public key to calculate the private key, you just need two decrypted signature, you now know how to dump these, so let's assume you just did, now all you have to do is to bruteforce the curve type by constantly reloading a self to metldr, the curve type being only 1 byte, that would be 64 possibilities.
      
      CONGRATULATION, you just signed a loader !
      
      Now what ?
      
      Well Your first reflex would be to sign a loader and use it to dump whatever is in your Isolated Local Store, the first thing you will notice is that you have a bit of metldr's code as a leftover, after a few seconds of disassembly you will figure it's actually some piece of code that clears metldr's code and registers and jumps to some address which is matches your signed loader's entrypoint.
      
      This seems like a more than likely candidate to exploit, as in your goal would be to overwrite that piece of code with your own, that way you would have the whole metldr code right before the point where everything gets cleared out.
      
      Let's try to do just that, from your previous dump, you obviously know that the clear code is located from 0x400 to 0x630, (0x410 being where metldr jumps when it clears) your first attempt would naturally be to have a loader section to load at 0x400, well not so surprisingly, it fails, because you are not without a brain (at least you aren't supposed to be if you're reading and understanding this), you will assume that it is likely that metldr checks if you aren't loading your loader/self section below a certain address, which considering you know the loaders' entrypoint is most likely to be 0x12C00, this assumption is in fact correct as metldr will make sure you cannot load any loader at 0x12BFF and below, seems like a huge let down...
      
      Well, maybe not, because yet again, you are not without a brain, you check out the hardware properties for the Local Store, and you find out that the memory wraps around (memory is a donut as someone once said at some ccc conference).
      
      So what happens when you load your loader at let's say from 0x3F000 to 0x40000+some address? (like 0x40410 for example) ?
      
      Well, it WORKS!
      You could put the section at 0x3F000, if you made the length 0x1414 and the last instruction branches "up" to the dump code
      
      ROM:000008AC 33 7F 6C 80 brsl lr, cleanup_and_jump_entry
      ROM:000008B0 32 00 11 80 br loc_93C
      ROM:00000410 cleanup_and_jump_entry: ; CODE XREF: main+4Cp
      ROM:00000410 32 7F FF 80 br sub_40C
      this is what the exploit that got leaked (yeah that's not really their work eh but you figured that much by now did you not? ) does.
      It overwrites from 0x000 to 0x480 because I originally loaded the section o size 0x880 to 0x3FC00
      
      So now you get code execution on metldr at the best time possible because your code executes right after metldr copies the root keys from 0x00 to 0x30, which means you get to dump these too. (Although they are hardcoded in metldr's code anyway)
      
      
      Here you go, you have a metldr dump !
      
      Now as a final line, I'd like to say screw leakers, screw the scene, and this is my last contribution to it EVER. It seems I can't even trust fellow developers to keep my work safe and not leaking it. (Not like any of them would have been able to tell you how all this even works in the first place)
      
      So long, everyone. 
      Remember, don't ever bite the hands that feed you.
    1. daviedave's Avatar
      daviedave -
      this has got me really excited, long live homebrew
    1. kaotic1986's Avatar
      kaotic1986 -
      Quote Originally Posted by DarkMega View Post
      Same talk every time! Every month a new method is released to find the ps3 newest firmware keys. Since June all this news come with a note like this: "this maybe a step forward to the likes of obtaining the private keys and eventually a CFW for higher firmware i.e 3.72, 3.73 etc." And nothing is release! Stop giving false hopes!
      But this time we are actually seeing signs that there can really be a CFW for higher firmware. Take the trueblue dongle for instance, and all the new 3.6+ that are now playable .
    1. yes159's Avatar
      yes159 -
      Talk about bad timing for True Blue. Now that dongle isnt needed at all.


      Quote Originally Posted by kaotic1986 View Post
      But this time we are actually seeing signs that there can really be a CFW for higher firmware. Take the trueblue dongle for instance, and all the new 3.6+ that are now playable .
      He wrote that before it was confirmed
    1. greyest's Avatar
      greyest -
      And PS:

      P.S. Oh! and btw, if you talented enough to make hardware to dump the shared lsa, you can decrypt any lv0 using this technique.
    1. mega4000's Avatar
      mega4000 -
      The guy who betrayed math is my hero!!! He deserves it!
  • Daily Digest


    Want to receive the latest PSX info in your email?

    Sign up for our Daily Digest!



    Want to learn more about the team keeping you up to date with the latest scene news?

    Read about them now!

    Check out our Developer bios, too!

  • Recent Threads

    smokie1313

    serious issue here PLZ HELP

    Thread Starter: smokie1313

    okay here it goes
    i got 4 ps3 cech-3001a/b that shut off 2 secs after trying to power up
    red green then no lights at all

    Last Post By: No0bZiLLa Today, 07:44 AM Go to last post
    sparker781

    Sleeping Dogs Add-Ons

    Thread Starter: sparker781

    Hey All

    Thanks for stopping by. Essentially I can get the add-ons with no problem...But am not sure if I am doing something wrong cause

    Last Post By: BahumatLord Yesterday, 11:17 PM Go to last post
    rvuy9645

    Looking for: PS2 network adapter [EUR]

    Thread Starter: rvuy9645

    Hello,

    Looking for a network adaptor in Europe.
    I'm living in Belgium.
    Want to upgrade my fat PS2 with a HDD.
    Anybody

    Last Post By: rvuy9645 Yesterday, 06:18 PM Go to last post
    SonyUSA

    iPod Touch 5th Gen Digitizer Replacement Guide !

    Thread Starter: SonyUSA

    Welcome to SonyUSA's Totally Amazing Digitizer Only iPod Touch 5th Generation Replacement Guide! V. 1.2!
    *trumpets!*

    Guide made for

    Last Post By: wartutor Today, 12:32 AM Go to last post
    PS456

    Weird Fragmentation problem

    Thread Starter: PS456

    Okay, a couple months ago i used Opl for my backups constantly. Eventually i grew bored, and got rid of all the backups and formatted my usb. Now i tried

    Last Post By: SP193 Today, 03:01 AM Go to last post
    ANTZ7

    About fight night champion

    Thread Starter: ANTZ7

    Has anybody managed to successfully resisgn
    Fight night champ I can't resign the save file to another user name I done a few games but just can

    Last Post By: worrorfight Yesterday, 05:50 PM Go to last post
  • Recent Comments

    alzaabi

    BwE NOR Validator v1.30

    thank you very much but does this really patch Nor Dumps ?
    or just validate it ? Go to last post

    alzaabi Today 04:03 AM
    TheShadowRunner

    PS2 Controller Remapper v1.00 - by pelvicthrustman

    Woah totally awesome app, pelvicthrustman!
    A suggestion, could you extend the functionality for... Go to last post

    TheShadowRunner Today 02:32 AM
    coldlm

    PS2 Controller Remapper v1.00 - by pelvicthrustman

    how about making the PS2 controller vibrate on PS3! Go to last post

    coldlm Today 12:43 AM
    worrorfight

    Comedy on Demand: Laugh Factory on PS3 Updated

    Should be free service. :) Go to last post

    worrorfight Yesterday 09:54 PM
    worrorfight

    BwE NOR Validator v1.30

    Great update BwE I like this a lot! Go to last post

    worrorfight Yesterday 09:48 PM
    worrorfight

    PS2 Controller Remapper v1.00 - by pelvicthrustman

    Very cool indeed. Go to last post

    worrorfight Yesterday 09:47 PM
    atreyu187

    3K3Y -- PS3 Blu Ray ODD Emulator

    It was done by checksums when people use the on screen display to load games instead of manually... Go to last post

    atreyu187 Yesterday 09:39 PM
    FrogDR

    3K3Y -- PS3 Blu Ray ODD Emulator

    could you show a links to the info with M$ and way to detect x360key users ? Go to last post

    FrogDR Yesterday 07:40 PM
    diegsmoran

    PS2 Controller Remapper v1.00 - by pelvicthrustman

    Wow, this is way cool. Definatly useful for JP games using the X button to select! or changing some... Go to last post

    diegsmoran Yesterday 05:21 PM
    elmaki

    [GTA IV] Major Distribution Mod Loader by ICECOLDKILLAH

    good gooodddd Go to last post

    elmaki Yesterday 04:34 PM