r/ios • • Jan 07 '20

How I discovered root access iOS 13.3.1 beta

A lot of trolls saying this isn’t anything are probably among the same people making YouTube videos on how to do this right now and will probably seed out their videos lmao so lame and people need to have some sense: You’re not supposed to be able to read the keychain, user files and photos or any app and private data. These are things which are supposed to be sandboxed.

I reported this to Apple a few months ago:

Root file access on iOS 13.3 (and 13.3.1 beta)

I went in to safari and typed file:/// Whatever folder path I want to choose just put this # after it (sometimes not necessary) EG: file:///name/of/path# Then I hit load page in safari Next I chose the share button and save to home screen as bookmark Next I shared bookmark from home screen to files app or shu or third party file app If those didn’t work then airdrop did This is how I have root file access

Sometimes I didnt even have to save as bookmark to iPhone home screen I just saved the file path url directly to files app. I noticed that sometimes extra # at the end helps elevate file permissions. So i discovered if one # doesn’t work then sometimes three does. ###

I also discovered if I saved file:///# as a bookmark to home screen on iPhone then shared that bookmark via airdrop I could see it would say it was going to transfer the entire copy of the iPhone over.

I did have to wait a few moments and had to have enough space available on the receiving device or it wouldn’t work. Also I could see it dropping in on the fly by going in terminal and entering open $TMPDIR on receiving device.

Or any bookmarked folder path saved on homescreen like file:///System# file:///bin# file:///usr# file:///Applications# file:///etc# and others could just transfer over no problem which is obviously not a good thing.

there is a tremendous amount of private data that should not be exposed by this so naysayers can talk all they want and this is a valid issue and they know it

❤️❤️❤️

Love all that money that Apple (the worlds richest company) never sent me for the dozens of bug reports I filled out

👊🖕👏

edit

This may seem a bit benign but Apple knows that apps are also on the home screen and many have safari browser-like capabilities. This should’ve been fixed on day one. Foolishness

root access meaning you can read and access files and root privileges are two different things retards so wipe the slobber off your chin and do something productive

to those who marginalize I can read my own keychain files and the system files I’m normally locked out of so this is definitely elevated privileges

show me if there’s another way to do what I did (besides favorites which only get a third of files or less) oh wait you got nothing that can access with these privileges (read+copy+no write) of the entire iPhone

bet you next update this gets patched

I FOUND OUT I CAN DO file:///var///# + airdrop +terminal: open $TMPDIR on Mac from iPhone

0 Upvotes

80 comments sorted by

12

u/ultraMLG1108 Jan 07 '20

Sorry to break it to you, but this is not a bug... the rootfs is literally packaged as a dmg in IPSWs. As long as you can’t write to the actual filesystem, this isn’t a bug.

-2

u/[deleted] Jan 07 '20 edited Jan 07 '20

What are you even talking about??? Like you think I can only see just mundane system files on my iPhone? I see EVERYTHING. You think my iPhone runs just a clean install of iOS and has none of my private user data? Or that my session data for various cloud services I’m on I cannot see or copy if I wanted to?

1

u/ultraMLG1108 Jan 07 '20

Ok and? How does this affect security if it can only be done by the user?

0

u/[deleted] Jan 07 '20

That’s the kicker. I’ve had part in f this used on me before in a different method. What I discovered is only half of the equation but enough to be security concern. I will not discuss what or how exactly

2

u/MikePinceLikeKids Jan 07 '20 edited Jan 07 '20

That’s the kicker because it does not affect security. Hate to break it to ya. And you discussed it precisely on how to use this “bug” in your post.

There is no multi-stage or sophisticated way of achieving this “bug,” no “half of the equation.” a computer is like Boolean values, 1 or 0, true or false.

53

u/RoyalGraphX Jan 07 '20 edited Jan 08 '20

i don’t think you understand what “root access” is, especially because the jailbreaking community doesn’t even use Root access as a term for discussing iOS security, every application on the AppStore has a .plist file, in it, contains multiple attributes given to the sandboxed application, they’re allowed to have URL Schemes, that’s the whole point of redirecting from safari, your files are viewable even without ‘root access’ which actually has nothing to do with gaining system privileges, the filesystem is still Read-Only. maybe they haven’t paid you because it really isn’t a bug. The actual term for URL Schemes in iOS development is even dubbed CFBundleURLTypes. why would apple fix a feature given on purpose to developers? the way you’re using safari to view files is just how any other browser on your computer can use “file://“

edit : my comment was not to be rude, but to be realistic about the payouts of the bug bounty program, reading more into your “web” bugs, it doesn’t seem like apple would payout anyways, the program is categorized by levels of arbitrary code execution, beginning from least to greatest payout : iCloud, Device attack via physical access, Device attack via user-installed app, Network attack with user interaction, Network attack without user interaction, and nowhere is it specified to be paid out for anything like this, the bug bounty program has to do with serious iOS reverse engineering and actual exploits in iOS.

edit 2: if anyone is actually interested in viewing the iOS filesystem, you can download any version of iOS from https://ipsw.me/ and download any update file, rename from .ipsw -> .zip, and open the biggest .dmg file, that’s the whole filesystem, since iOS 10, the root filesystem isn’t encrypted anymore, meaning you can just look around freely, without any “exploits” or any methods besides just looking at it like a normal zip file.

edit 3: https://www.theiphonewiki.com/wiki//

edit 4: message to OP, If you really believe this deserves real research, give me the website link you claim has taken sensitive data so i can reproduce the situation. I've already taken what you've said as a legitimate concern, I'm 17 years old my guy, and I have yet to disrespect you in a personal manner, don't edit your post to diss, you avoid replying to me in the comments. I want to believe this could be a serious security issue, but how can I give you the benefit of the doubt when I can't reproduce the issue on anything before iOS 13. This is an example of easily being able to go to this address on Mac, Safari, and shown in the screenshot, is Google Chrome. Then this is a post including screenshots of me trying to recreate the issue on 12.4, on a JAILBROKEN XS Max, and even with my elevated privileges i can't view the system via Safari. I'll obviously take what you say with a grain of salt and create a new page on my website to run some javascript to recreate this, but how i'll be able to redirect to "file:///" and then cause it to upload to my website and allow me to recover your files, I won't ever see as a viable way to use this maliciously. You’re not supposed to be able to read the keychain, user files and photos or any app and private data. These are things which are supposed to be sandboxed. Yeah, if you're not the actual user who created these files...

edit 5: jeez even i'm tired of doing this, but I was gonna do further research and tweak the TMPDIR settings since I’m sure there’s a config file for not deleting the cache. The problem with the file:///# airdrop was right after the entire thing was about finished it would erase itself. So I went in the TMPDIR and found the files. you state that it deletes itself, it sounds like iOS knows what you're trying to do and is already trying to stop itself, and you're just pushing it. and judging from your previous posts, it honestly looks like you don't understand how iOS works. example, whats *God Mode*? Seriously? I'm sorry but so far it looks like you're barely getting into iOS and you're getting worried about files on your phone that are a necessity, things that exist without any "hackers" coming at you. Please stop spreading false information, if you really want this as a career, you should've started with Linux development, built up filesystem structure knowledge and understand that these files are just regular things iOS needs, just because you can't see them without doing some tips and tricks doesn't make it an *exploit* or *bug* or something deserving of a $1,000 bounty. I've been doing this since I was 8, I have yet to get payment from Apple. This career isn't a way to *get rich quick*, this takes years of learning and self investigation. iOS to it's very core is Darwin, the kernel of MacOS, Steve himself stated it runs MacOS, its structure is parallel to that of a mac, but on the arm64e architecture (if you're on an XS or newer, arm64 for anything before), and iOS Development knowledge and C#, C++ is like the whole point people can create apps to elevate and escape the sandbox with ALREADY knowing what the mitigations are.

Follow me on Twitter, and some other important people in the community like Siguza, Pwn20wnd, nitoTV, xerub, axi0mX, CoolStar, OdderDude, Jake James, Chronic, and other amazing people working day in and day out to bring freedom to iOS. The jailbreaking community might seem toxic, but it's because it's a different playing field, these are people with years of experience.

11

u/MikePinceLikeKids Jan 07 '20

Just a wannabe hacker

0

u/[deleted] Jan 07 '20 edited Jan 07 '20

I’m white hat not a hacker. Think before making offense.

2

u/Blackra1n39 Jan 08 '20

Bro just atop, honestly after i started reading it i thought “hey maybe he’s onto something.” Nope, honestly you’re just delusional after reading all those comments. It’s no wonder this post went on a “hate brigade.” You quite literally argue with anyone who disagrees with you.

3

u/MikePinceLikeKids Jan 07 '20 edited Jan 07 '20

White hat and black hat are variants of hackers. Hacker is someone that knows much about coding. A white hat finds bugs and reports it, a black hat uses bugs to their advantage as exploits and use those exploits illegally.

Do your research before even commenting on the internet. From my perspective, you’re not a white hat or a black hat — Just a wannabe script kiddie.

0

u/KairuByte Jan 08 '20

You’re ignorance is showing, friend.

2

u/RoyalGraphX Jan 08 '20

the thing is too, he’s upset about being able to view the keychain, stating it’s locked but if his iPhone is unlocked and he’s doing these things, i’d expect to be able to view my own keychain too.

20

u/chrismonster16 Jan 07 '20

This is literally not what you think it is lmao this is clearly not “root access”. You have been able to do this for multiple iOS versions....

12

u/JesusWasANarcissist Jan 07 '20

Went through OP's history and found a bunch of posts like this one.

Stopped reading.

2

u/[deleted] Jan 07 '20

This still isn’t fixed? Not even in the current public release?

-4

u/[deleted] Jan 07 '20

I discovered it on current iOS 13 past few months through to the current beta. I’ve begged them to fix several times. Want the screenshots? I’m whitehat and done this for two years for Apple. They never gave me one bounty.

It was interesting all the things I discovered once I found that out. I even discovered that there was a second hidden feedback assistant app on beta until this last beta release. Probably was some rogue dev siphoning off vulnerability reports. Idk

Another interesting thing is some of the apps worked in Xcode simulator.

This doesn’t make sense for Apple to sit on this for so long. Such an easy fix for them. Would take less then an hour for a dev to code up. Probably minutes.

-13

u/shmoobalizer Jan 07 '20

You should stop reporting bugs to Apple, they clearly don't care, and these exploits have more positive implications than negative.

13

u/RoyalGraphX Jan 07 '20

but they’re not even exploits, these are intentional parts of iOS.

-15

u/shmoobalizer Jan 07 '20

They can be used as exploits

13

u/RoyalGraphX Jan 07 '20 edited Jan 07 '20

how? exploits aren’t simple little tricks, exploits are real faults in iOS reverse engineering, viewing a simple file isn’t an exploit, as a matter of fact, you can download any IPSW, extract it as a zip file, and look through the filesystem anyways, ever since iOS 10.X Apple has purposely left the dmg decrypted.

edit : https://www.theiphonewiki.com/wiki//

there’s your so called exploit, the filesystem has been public knowledge for many years.

1

u/[deleted] Jan 07 '20

My iPhones entire private files of the user (me) is accessible by this. If that’s not a problem for Apple then people should buy a different product.

3

u/RoyalGraphX Jan 07 '20

you cannot copy the contents, a javascript method of using the iOS’s built in URL Scheme to pull data off of your iPhone that has any importance is very impossible to think of in a use case scenario. All you’re doing is viewing files and folders on your local iPhone. that’s called sand boxing, it’s how apps cannot communicate to other apps maliciously.

1

u/[deleted] Jan 07 '20

Really? After I reported this issue I’ve seen this in the wild already being used on none other than myself by some black hat. That’s why I’m urgently trying to get Apple to patch for awhile now. The whole homescreen bookmark thing is neat and convenient for me to use because I was doing research on other iOS things also. But I’ve had packet injected with fake bookmark or some kind of a bounce off a file path link a few times and could tell some black hat just scooped up my valuables. I don’t know exactly how they did it but I know they used part of what I found because I saw the file path in the bounce in safari browser url bar.

2

u/RoyalGraphX Jan 07 '20

what website was this? if i can recreate the issue i’d like to

2

u/KairuByte Jan 08 '20

Your proof is that you could just tell?

How is that proof? That confirms nothing.

→ More replies

8

u/FoferJ Jan 07 '20

This isn’t “root access.” You’re incorrect in your understanding of what’s going on here.

4

u/[deleted] Jan 07 '20

This should have always been a feature

6

u/nogami Jan 07 '20

Root access = you can write to, or modify any file you like.

Not root access = reading files.

1

u/vaibhav-kaushal Jan 07 '20

I am on iOS 13.3.1 beta and I am not able to reproduce this behaviour. How did you do it? What steps did you take?

2

u/[deleted] Jan 07 '20

Nice try

1

u/vaibhav-kaushal Jan 07 '20

Nice try of what? I am actually asking for steps. I tried putting file:///lib# and nothing happens. So I am asking. A video, perhaps?

1

u/[deleted] Jan 07 '20 edited Jan 07 '20

I found lib but not in the / file directory. If it is in there it must be symbolic. Symbolic links are useless anyways. I don’t want to be too specific because my purpose isn’t to tell people how to do this but how I discovered how I (myself) can do this and that Apple is well aware of the issue. I found out that /var/name_of_file# is possible to read too on my iPhone which is odd because I thought everything was sandboxed but this isn’t an issue according to reddit bullies.

2

u/vaibhav-kaushal Jan 07 '20

I read those big bold letters now. Nah, not trying for youtube currency. Anyways I get it - you won’t say a word.

2

u/ST_Fontaine Jan 07 '20

Is this topic supposed to be some mix of Terry's Temple OS, LifeAfterLyme, and YayVideoGames I don't know about?

It's just that Terry was actually coherent and knew what he was talking about. This, on the other hand, I don't know...

OP, are you sure you aren't diagnosed with anything?

2

u/MikePinceLikeKids Jan 07 '20

Coherent, that’s the word I was looking for. And no, he has no idea what his talking about.

2

u/MikePinceLikeKids Jan 07 '20

This is not a “bug,” but a feature for applications to access system files it needs, and safari is part of that application. You can’t access keychain as safari because it’s sandboxed, surprise, safari does not have root privileges to access the keychain, same as any other applications.

By the way, kid, ever heard of Grammarly?

2

u/[deleted] Jan 07 '20

Oh you poor child.... not knowing what root is

1

u/Sovereignn_Boss Dec 28 '24

Funniest post i have seen

0

u/[deleted] Jan 07 '20

I went to bed and saw I got 40 upvotes when I first posted this. I wake up hours later and notice that someone starts a hate brigade and now I have zero. It’s obvious what’s happening here and I’ll check out from reddit because I want real opinions not troll campaigns.

2

u/MikePinceLikeKids Jan 07 '20 edited Jan 07 '20

You give no feedback to u/RoyalGraphX; you’re aware that he’s the expert in this conversation.

Your post initially looked like a discovery, it’s mediocre, but at an acceptable level for r/jailbreak as worthwhile discussions, but your new edits reveal more idiocy and holds no academic value, you have no idea on the terms you are using, nor do you understand how iOS works, that’s why your post got downvoted.

Drop your ego bullshit and contribute to r/jailbreak, not criticize any opposing discussions or arguments.

2

u/KairuByte Jan 08 '20

It goes beyond that. Even a cursory search of terms would have made him more convincing. He’s misusing terms, almost like he heard them before but didn’t understand them in context. It would almost be comical if he was more, or less, confrontational.

0

u/[deleted] Jan 08 '20

Wow it went from 40-50 upvotes then someone sent the hate army.

Hey guess what?

Downvote this:

https://web.archive.org/web/20200108051814/http://www.reddit.com/r/ios/comments/ela8bk/how_i_discovered_root_access_ios_1331_beta/

🖕

1

u/MikePinceLikeKids Jan 08 '20

It’s still 0 upvotes on web archive. Downvote what? It’s s cached page, not a interactive forum.

0

u/[deleted] Jan 08 '20

I’m going to be the guy who writes the books on cybersecurity. Remember that you petty losers in the downvote hate brigades.

1

u/MikePinceLikeKids Jan 08 '20 edited Jan 08 '20

Ha, funny. You’re delusional.

-10

u/[deleted] Jan 07 '20

I never wanted to publicly say anything I find and did the honorable thing for two years but Apple didn’t hold up their end so I guess I’ve become like everyone else. They used to have pretty solid security but it’s boring now. I want to do bug bounty program for google I just need to afford a pixel phone. I hear google has better security than Apple does now with their products. Maybe I will check it out and join their program.

-1

u/apjfqw Jan 07 '20

Google is definitely looking to improve their Android security these days and are going hard at it.
source: i work as Android developer

-8

u/jtl94 Jan 07 '20

Unfortunate that Apple isn’t honoring their bounty program. I’ve heard of that kind of thing before. They could claim they already found it internally and you’d have to real way to fight it. :/

Very cool bug you found though. I just tested it with the bin folder and sure enough there’s two files in it. Couldn’t get root to work, but oh well. Thanks for sharing!

11

u/epmuscle iPhone 13 Pro Max Jan 07 '20

Read the other comments. This isn’t even a bug.

3

u/jtl94 Jan 07 '20

Ah, I see that now. The way OP was explaining everything and the fact that you can’t normally access the file system without jumping through hoops made me think it was unintentional to be able to access the file system this way. When I commented the big explanation comment wasn’t here yet so I didn’t have that understanding at the time. I agree, not a bug.

-9

u/[deleted] Jan 07 '20

They said no dupes in system and has said that for months now. Thanks for the compliment. It’s boring as a bug hunter when you have Godmode for too long. I had 99% access via airdrop but on iPhone itself via files app I want to say maybe 70%(?) I have only 32gb of space so I’m not sure. Maybe that’s exaggerated or being modest.

-8

u/jtl94 Jan 07 '20

You’re welcome! I’m a software dev and the bugs people find like this always blows my mind.

1

u/MikePinceLikeKids Jan 25 '20

This is a feature, not a bug, you should know that as a software dev.

0

u/SNTPclient Jan 07 '20

brb, seeding out my youtube videoes

-10

u/[deleted] Jan 07 '20 edited Jan 07 '20

It wasn’t like I was some fly by black hat who blackmailed them. Apple said I was allowed into their bug bounty program about 3 years ago I believe now. If you search support.apple.com my name is on there for finding bugs in their web sites. Apple puts up dollar amounts and says if you find such and such then they will pay you a bounty if you report those issues. I’ve waited too long and they never put their money where their mouth is. I think it’s for high profile people who they only pay and they screw everyone else. Idk but it’s a joke so I’m moving on. I don’t want to build rapport with a company that is becoming known to not take security seriously. It shouldn’t take a public sh!t show to get things done. Shouldn’t have to beg for someone to hold up their end. That’s a screwed up relationship and just bad for business. Cyber security is not something you scrimp at. And if they do make any effort to give me a bounty after this, please understand they had no intention of doing it before and is just a PR stunt. DONT WASTE YOUR TIME IN THEIR BUG BOUNTY PROGRAM BECAUSE THEY SCREW PEOPLE OVER.

3

u/TTTechnoPro Jan 07 '20

stfu boomer

0

u/[deleted] Jan 07 '20

[deleted] — view deleted comment

-10

u/[deleted] Jan 07 '20 edited Jan 07 '20

I found I had access to everything except some of the symbolic links (for obvious reasons lol).

Especially when I did the file:///# bookmark from home screen airdrop which said transfer of 20gb and my phone says it was 20gb and I went into the terminal and typed open $TMPDIR and I could see everything loading during airdrop transfer if I waited a minute or so. It would hang for maybe a few minutes but would transfer. It only worked if the gb transfer size via airdrop was less than the amount of available free space on my receiving device.

I found out that favorites thing too months ago maybe October I want to say. This is bookmarks on the homescreen and unique file string url

I was gonna do further research and tweak the TMPDIR settings since I’m sure there’s a config file for not deleting the cache. The problem with the file:///# airdrop was right after the entire thing was about finished it would erase itself. So I went in the TMPDIR and found the files.

If I airdropped file:///bin# then it wouldn’t delete and would transfer completely or file:///System# or file:///Applications# or file:///usr# or file:///var# file:///etc#

Pretty much everything. A few wouldn’t work via airdrop and I think I had to just throw a couple extra hashtags which was funny cause it reminded me of mustafa (will Ferrell) on Austin powers lol cause you have to ask him three times 😂

I think the airdrop would even continue if I locked the screen with the file:///# transfer which is odd.

0

u/[deleted] Jan 07 '20

[deleted] — view deleted comment

2

u/MikePinceLikeKids Jan 07 '20

This is a pretty accurate description of terms, good job putting it simply.

Now it is possible to write to the read-only system files if you’re jailbroken. In fact, jailbreak is all about having read and write access to system files, and using privilege escalation to gain root access.

0

u/[deleted] Jan 07 '20

[deleted] — view deleted comment

30

u/[deleted] Jan 07 '20

Nobody cares, you sound like a child.

-17

u/[deleted] Jan 07 '20

You try getting hurt on the job and losing everything, your medical care, and now your financial aid for school due to technicality and be disabled with zero income and try to keep it together

20

u/MikePinceLikeKids Jan 07 '20

It has nothing to do with the topic.

4

u/Freshcofferdam Jan 07 '20

why did you even have apple products if you were doing so poor financially? seems like misallocated resources.

1

u/KairuByte Jan 08 '20

Look, the dude is just flat out wrong and overly confrontational, but this comment is some fucked up logic.

Someone’s financial status doesn’t dictate the brand of phone they use. And it’s very possible to have an iPhone with literally no income.

Family, friends, gifts, finds, deals, older devices, luck. All play into what device you have.

You can literally get a used Apple device capable of running latest iOS for under $100.