TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Psychic Paper: iOS Sandbox Escape

236 pointsby mp3ilabout 5 years ago

11 comments

Negitivefragsabout 5 years ago
This reminds me a lot of one of the original ways to run unsigned code on the Sony PSP.<p>If you made two directories:<p><pre><code> SomeApp SomeApp% </code></pre> And then launch the folder with the % sign then the code that checks for valid signatures will check in the directory without the %, but the code that actually launches the binary will still run the code in the directory with the %.<p>So all you need to do is get any binary with a valid sig and put it in the SomeApp folder while putting the code you actually want to run in SomeApp%.
评论 #23051287 未加载
评论 #23048404 未加载
评论 #23047568 未加载
saurikabout 5 years ago
A while back I filed a bug on libplist with some examples of the hilarious this-is-not-XML issues in Apple&#x27;s userland plist parser, which people might find fun here as it is highly related to this issue.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;libimobiledevice&#x2F;libplist&#x2F;issues&#x2F;83" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;libimobiledevice&#x2F;libplist&#x2F;issues&#x2F;83</a>
评论 #23053957 未加载
tomphooleryabout 5 years ago
&gt; I just hate GUIs for development, especially when you Google how to do something, and the answer is a series of 17 “click here and there”s that are no longer valid because all the GUI stuff moved somewhere else in the last update.<p>It&#x27;s not just developer tools that suffer from this problem. I opened iMovie recently after not playing with it for almost 10 years, and was so flabbergasted at how everything worked. Took me almost 2 weeks to sync my own song to a series of cut video clips (cut out of larger videos, which was the main problem). Maybe I&#x27;m just an idiot, but googling around for solutions ended up with either out-of-date answers or completely unrelated problems.<p>I just wish that the app would use even one or two conventions from the 40-50 years of GUI research that has been done...
评论 #23047771 未加载
评论 #23048291 未加载
评论 #23048507 未加载
jschwartziabout 5 years ago
Maybe we should take this as a lesson that we should use the simplest marshalling format that adequately captures our use cases rather than using a swiss-army knife format like XML.
评论 #23047325 未加载
评论 #23046426 未加载
评论 #23046542 未加载
评论 #23106196 未加载
评论 #23046248 未加载
kitotikabout 5 years ago
Once binary plists were introduced, it was only a matter of time before it became the macOS equivalent of windows registry.<p>The fact that Apple is maintaining multiple parsers, and apparently added yet another in response to this bug, just smells bad.
评论 #23047377 未加载
评论 #23047401 未加载
评论 #23046970 未加载
codezeroabout 5 years ago
Reminds me a bit of the CVE about SAML authentication being screwed up by bad XML parsers. Seems like a lot of low hanging fruit there still.<p>[0] <a href="https:&#x2F;&#x2F;duo.com&#x2F;blog&#x2F;duo-finds-saml-vulnerabilities-affecting-multiple-implementations" rel="nofollow">https:&#x2F;&#x2F;duo.com&#x2F;blog&#x2F;duo-finds-saml-vulnerabilities-affectin...</a>
ray991about 5 years ago
The author mentions that this bug saved him 1000s of hours in development. How is a sandbox escape useful in development? Can someone give me an example?
评论 #23046759 未加载
Twisellabout 5 years ago
I&#x27;m not in the security community and as an end user there seems to be two lesson there:<p>-Apple should provide better audit tool so that security consultants don&#x27;t need to rely on unpublished 0day exploits to find other exploits<p>-As an exposed user I really don&#x27;t thank grey hat People that refrain from publishing 0day exploit for two frigging years for personal gain...
评论 #23050423 未加载
panicabout 5 years ago
The section of the WHATWG HTML spec about parsing XHTML begins with this note:<p><i>&gt; An XML parser, for the purposes of this specification, is a construct that follows the rules given in XML to map a string of bytes or characters into a Document object.</i><p><i>&gt; Note: At the time of writing, no such rules actually exist.</i><p>What do the authors of HTML mean by this? Isn&#x27;t there a spec for XML? There is -- here&#x27;s what it has to say about comments (<a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;xml&#x2F;#sec-comments" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;xml&#x2F;#sec-comments</a>):<p><pre><code> Comment ::= &#x27;&lt;!--&#x27; ((Char - &#x27;-&#x27;) | (&#x27;-&#x27; (Char - &#x27;-&#x27;)))* &#x27;--&gt;&#x27; </code></pre> The HTML spec, on the other hand, writes out the token state machine explicitly. There are ten states involved with parsing comments; here&#x27;s one (<a href="https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;parsing.html#comment-state" rel="nofollow">https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;parsing.html#comment-...</a>):<p><pre><code> 12.2.5.45 Comment state Consume the next input character: U+003C LESS-THAN SIGN (&lt;) Append the current input character to the comment token&#x27;s data. Switch to the comment less-than sign state. U+002D HYPHEN-MINUS (-) Switch to the comment end dash state. U+0000 NULL This is an unexpected-null-character parse error. Append a U+FFFD REPLACEMENT CHARACTER character to the comment token&#x27;s data. EOF This is an eof-in-comment parse error. Emit the comment token. Emit an end- of-file token. Anything else Append the current input character to the comment token&#x27;s data. </code></pre> The spec defines what to do for every character, even characters that should not appear in valid HTML. An HTML parser will behave exactly the same as another HTML parser in all circumstances.<p>You can see the success of this approach on the real web; inconsistent HTML parsing between browsers is no longer the issue it used to be 15 years ago. It may be more work to write, but I wish HTML&#x27;s precise, step-by-step format was more common. Writing a spec as a list of rules makes it easier to implement (as a first pass, you can just go line-by-line and translate it to code) and reduces the chance of inconsistencies like the one in the article (and their associated security implications).
评论 #23049395 未加载
codeisawesomeabout 5 years ago
That made me shudder go all the people I know who won’t update their phones
评论 #23049722 未加载
评论 #23052599 未加载
Kikawalaabout 5 years ago
XML is hard. Love that the fix is reminiscent of XKCD 927[1]<p>[1]<a href="https:&#x2F;&#x2F;xkcd.com&#x2F;927&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;927&#x2F;</a>
评论 #23050650 未加载