Sponsored Links

Sponsored Links

PS3 LV2_Kernel Exploit Sample Implementation By Naehrwert


Sponsored Links
124w ago - Following up on his PS3 SCETool update and PS3 Dump_Rootkey code, today Sony PlayStation 3 hacker Naehrwert has posted some details on exploiting the PlayStation 3 lv2_kernel and has made available a sample 3.41 implementation below.

To quote from his blog: Exploiting (?) lv2

A long while ago KaKaRoTo pointed me to a stack overflow he found while reversing lv2_kernel. But there are two problems:

1. The vulnerability is in a protected syscall (the SELF calling it got to have the 0x40... control flags set). So you’d first need to find a suitable usermode exploit (don’t ask us), that gives you code execution with the right privileges.

2. The payload data is copied to lv2 heap first and the function will do a free call on it before the payload has any chance to get executed. This might not sound like a problem but it looks like lv2′s heap implementation will overwrite the free’ed space with 0xABADCAFE and thus destroy the payload.

Here (pastie.org/4755699) is my sample implementation for 3.41 lv2_kernel (although the vulnerability should be present in all versions of lv2 up to the latest firmware), maybe someone of you will find a way to overcome problem (2.) and can get something nice out of it because right now it’s only good to crash lv2.

[Register or Login to view code]

From Mathieulh (via pastebin.com/naxXkv3M):

[Register or Login to view code]

The footer signature is still not checked upon npdrm self files execution as of 4.21.

Because kakaroto says something that doesn't make it true. Basically he found a check in 3.55 that was not even called and assumed they used it in 3.60+.

Of course they do whitelist npdrm now so even if the footer isn't checked you cannot run your own npdrm selfs signed with keyset lower than 0x0D making the whole debate rather pointless. Aditional checks are now performed on the actual file format as well such as the segment counter flag that needs to be set to 0x01 except for the very last segment.

Finally, from KDSBest (via twitlonger.com/show/jcmh80): Since naehrwert posted an lv2 exploit I will do so too . The stack pointer points to lv2 and if we do a syscall, the syscall saves register to the stack HAHA.

Btw. It just crashes the console for now, since I totally overwrite dump the lv2 or some memory addresses I don't know. Feel free to try around, adjust the address of the stackpointer and so on. If you managed to get the panic payload executed. Tell me!!! ^^

[Register or Login to view code]

I didn't managed to make it work on 4.21 so I just did on 4.20






Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter, Facebook and drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene and PlayStation 4 scene updates and fresh homebrew PS3 Downloads. Enjoy!
Sponsored Links
Sponsored Links

Comments 283 Comments - Go to Forum Thread »

• Please Register at PS3News.com or Login to make comments on Site News articles.
 
#233 - BerserkLeon - 41w ago
BerserkLeon's Avatar
Try a 0byte file? Exception.

scratch my last comment, here i was assuming that [klic] was text entry instead of a file read operation.

klic's 32 0's: [Register or Login to view links]

oh silly me, I uploaded the wrong one. Oh well, it has the same properties as the bgm0000002 one, free and edat v4. same error.

... Well now I feel stupid. The error was because I opened it in notepad++ and typed 32 0s.
klic is to be read from a file that is compiled with a hex editor. So I opened HxD and wrote one line of 0s, and now it works.
Brilliant. Another PEBKAC, I think I should think and do a bit more trial and error before typing.
Much thanks to User and Belmodo, I've been obsessing over this most of the weekend.

#232 - PS3 News - 41w ago
PS3 News's Avatar
Today PlayStation 3 developers user and Belmodo have made available NPDTool PS3 EDAT / SDAT Tool v4 Final with the changes outlined below.

Download: [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links]

To quote: Hi, Belmondo and me thought it would be time to just drop this here.

Enjoy

PS: extracting compressed edat/sdat is supported, creating isn't. However, you can finalize compressed debug edat/sdat.

Edit: ofc creating and extracting uncompressed edat works as well... let me know if there are any issues. it works with every file i tried.

Credits: JuanNadie

Previous Revisions:

Update 4d:

  • decompression fix

More PlayStation 3 News...

#231 - thegrillisreal - 47w ago
thegrillisreal's Avatar
StanSmith: ...Really, bruh? For someone so SMART, that sure was something DUMB to say.

There are no such things as stupid questions. If a person does not know or is not familiar with patching or is new to custom firmware, then they have a right to ask someone SMART about whether a game works. That's what the ps3/ps4 forums are here for (In case you've forgotten, which it seems like you have.)

I am not going to lie. Sometimes, it gets annoying answering the same question over and over. I used to moderate a group concerning 3.55 firmware and I worked with others who did not understand all the programs well. (Get this--even I don't know how to use all the programs!)

But, you know what? I'm going to ask for help, instead of doing things on my own and end up messing my junk up and then have to go out and buy a new console.

Case in point: SMART people ask questions. Case closed.

#230 - StanSmith - 48w ago
StanSmith's Avatar
EVERYONE with a CFW that plays backups NEEDS these programs.

If everyone had these there would be no stupid questions like "Does this work on x.xx CFW?" Instead they would patch it themselves and find out if it works or not.

And by now every new game is coded for 4.50 or higher so everyone should also stop the stupid questions "does this work on 3.55?" IF COURSE NOT! Its not encoded for 3.55 so why would it work on 3.55?

Just upgrade to a newer CFW where the games do work on. If your on a lower CFW like Cobra 4.46 then you need to patch games so you use these programs. If your on 4.50 or above CFW then you dont need these as they already work.

It all comes down to how dumb you are. If your stupid you wont get these apps and you will ask stupid questions all the time and still be on stupid low CFW. If your smart you will be on a higher CFW and have these programs to help you out if you ever need to patch your games and you wont ask stupid questions filling up forums with stupid questions and repeated answers.

Just my 2 cents why you need these programs. They are really simple to use and really fast. By the time you load up your browser, loaded up the forum, asked the question, waited for an answer, replied you could already be playing your game.

#229 - PS3 News - 48w ago
PS3 News's Avatar
Following up on his previous updates, today PlayStation 3 developer JjKkYu has released TrueAncestor EDAT Rebuilder v1.45b followed by v1.45c and a PS3 ISO Rebuilder by jonnysp with the changes outlined below.

Download: [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] by Ada Love Lace / [Register or Login to view links] by jonnysp

Version b for v1.45, just make some secret function to public.

Changelog v1.45b:

1. Batch mode and compress support is opened to public.
2. Klic Bruteforcer is updated to v2.1.

Update: Sorry for everyone, I've made a big mistake in this version. I will give a fix version soon.

Changelog v1.45c:

1. Fix some silly issues.
2. To launch the c version, please run rebuilder-c.exe.

More PlayStation 3 News...

#228 - PS3 News - 56w ago
PS3 News's Avatar
Following up on his previous updates, today today PlayStation 3 developer JjKkYu (aka Brunestud) has released KLicensee Bruteforcer v2.0 with details below.

Download: [Register or Login to view links]

To quote: Hi, Mates. I have update the DevKlic Bruteforcer to v2.0, since it now supports self/sprx, so I rename the tool.

New features in v2.0:

1. Support bruteforce klic for self/sprx files.
2. Add text mode for binary source file.
3. Fix last line bug in line mode.

This tool is based on EDAT DevKlic Validator by BuC. And great thanks to catalinnc for his help in adding self and text mode support.

Some klic for certain games are still hidden, I do not know how it is stored in EBOOT. If someone can give some clue, it will be helpful to improve the tool.

  • Tekken Revolution
  • Eiyuu Densetsu - Sen no Kiseki
  • Beyond Two Souls


More PlayStation 3 News...

#227 - visioner - 57w ago
visioner's Avatar
Please, I have some eboot.bin changed for cfw 3.41 and cfw 3.55. Now I have rebug lite cfw 4.46 cex and this eboot.bin(s) doesn't work.

Sorry my noobish but I tried to use your eboot resigner but It appears to wait for a .pkg program, Am I right?

How Could you use any resigner 4.46 cfw to simple put eboot.bin (3.55 or 3.41 CFW) and get a result in a simple eboot.bin converted to 4.46?

Please I Thank you very much any help for this.

#226 - PS3 News - 63w ago
PS3 News's Avatar
Following up on his last update and previous revision, today PlayStation 3 developer JjKkYu has released TrueAncestor EDAT Rebuilder v1.90 followed by v1.91 with the changes outlined below.

Download: [Register or Login to view links] / [Register or Login to view links] (Mirror)

To quote: Since many people ask me to add something new, so I did it.

TrueAncestor SELF Resigner

v1.91

1. Fix issue when resigning SELF/SPRX with all zero klicensee.

v1.90

1. Add custom sign SELF/SPRX files.
2. Add raps folder, rap file can be put here to resign local type selfs.

From ps3tools.aldostools.org/klics.txt:

[Register or Login to view code]

More PlayStation 3 News...

#225 - suquip - 66w ago
suquip's Avatar
Thanks for the update.

#224 - PS3 News - 67w ago
PS3 News's Avatar
Following up on the previous updates and SCETool Script, today PlayStation 3 developer Habib (aka smhabib) who recently released Habib CEX 4.50 V1.03 PS3 CFW unofficially updated PS3 SCETool to version 0.3.1 followed by v0.3.2 for Custom Firmware users with the changes below.

Download: [Register or Login to view links] / [Register or Login to view links] (with changes added) by zecoxao / [Register or Login to view links] by zecoxao / [Register or Login to view links] by deroad

To quote: Basically what it does is,it encrypts iso modules (needed for cfw creation!) with its respective indiv seeds of eid.now normal people can do amazing things.i first posted this on psx-scene but with not much details.SO HERE IT GOES WITH SRC!!!!

A short NOTE:the keys should be only edited with notepad++ to save its formating or you might get errors(latest keyset included!)

FOR N00BS: you can also use scetool --template spu_token_processor.self(original self) --sce-type=SELF --encrypt spu_token_processor.elf(modified elf) spu_token_processor.self(output modified self)

THANKS:

1. naehrwert
2. my friend anonymous dev

I SALUTE YOU BOTH!!!!!!!!!

CHANGELOG:

1. Fixed makefile
2. Added indiv seed options for creaters of cfw or for some testers

From zecoxao: Here is the tool on github (github.com/zecoxao/scetool) with all the added "changes" (which was commenting one line and uncommenting two, bravo...)

And here's an example of the new features being used: pastebin.com/Cw6uPiaJ

[Register or Login to view code]

Check the label [Optional Header] for more information.

Finally, Habib has made available a proof-of-concept (PoC) for running syscalls based app without porting it to newer firmware with details below.

Download: [Register or Login to view links] (2.18 MB)

To quote: Now I'll give you example of a Fan Control Utility being ran with my kernel and not with any other 4.50 cfw.if you try you'll simply get an error showing bad temp reading and sys_sm_get_fan_policy error. Currently source code is a lot a mess but ill be sharing it too.

Current Syscalls Added are: 386,389,409,383.

More PlayStation 3 News...

 

Sponsored Links

Sponsored Links







Advertising - Affiliates - Contact Us - PS3 Downloads - PS3 Forums - Privacy Statement - Site Rules - Top - © 2015 PlayStation 3 News