{"id":40401,"date":"2023-08-21T14:31:41","date_gmt":"2023-08-21T18:31:41","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=40401"},"modified":"2023-08-21T14:31:41","modified_gmt":"2023-08-21T18:31:41","slug":"bypassing-app-management-with-textedit","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/08\/21\/bypassing-app-management-with-textedit\/","title":{"rendered":"Bypassing App Management With TextEdit"},"content":{"rendered":"<p><a href=\"https:\/\/lapcatsoftware.com\/articles\/2023\/8\/2.html\">Jeff Johnson<\/a> (<a href=\"https:\/\/appdot.net\/@lapcatsoftware\/110924268903357970\">Mastodon<\/a>):<\/p>\n<blockquote cite=\"https:\/\/lapcatsoftware.com\/articles\/2023\/8\/2.html\"><p>In retrospect, I regret participating in the Apple Security Bounty program. It has been a giant, frustrating waste of time, and I wish I had just dropped this 0day on October 24 of last year when Ventura was released. I suspect that if I had done so, Apple would have found a way to address the issue already in Ventura. Thus, I feel that my prolonged silence has not protected Mac users. The standard practice in reporting a security vulnerability is to give the vendor 90 days to address the issue, and I&rsquo;ve given Apple vastly more time than expected.<\/p><p>[&#8230;]<\/p><p>I discovered&mdash;almost by accident&mdash;that a sandboxed app could modify files that it shouldn&rsquo;t be able to modify: files inside the bundle of a notarized app that were supposedly protected by App Management security.<\/p><p>[&#8230;]<\/p><p>This isn&rsquo;t the first time that a major macOS update included a new security (theater) feature with a gaping hole. For example, I previously discovered a <a href=\"https:\/\/lapcatsoftware.com\/articles\/finally-credit.html\" title=\"Finally credit from Apple Product Security\">bypass for Mojave&rsquo;s new privacy protections<\/a>. And it&rsquo;s important to keep in mind that I&rsquo;m not a professional security researcher.<\/p><\/blockquote>\n\n<p>It&rsquo;s hard to make a living reporting security bugs when Apple has a history of declaring them not bugs, being stingy with payments, and <a href=\"https:\/\/mjtsai.com\/blog\/2020\/07\/22\/apple-security-research-device-program\/\">stalling<\/a>&mdash;which encourages releases like this that forfeit the possibility of collecting a bounty.<\/p>\n\n<p><a href=\"https:\/\/lapcatsoftware.com\/articles\/2023\/8\/3.html\">Jeff Johnson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/lapcatsoftware.com\/articles\/2023\/8\/3.html\"><p>Today I want to illustrate the vulnerability a little more clearly to a non-developer audience.<\/p><p>[&#8230;]<\/p><p>As you can see, modifying that file would mess with Firefox&rsquo;s software update mechanism, perhaps leaving the user vulnerable to a malicious software update.<\/p><p>[&#8230;]<\/p><p>TextEdit is sandboxed. Ironically, sandboxing was designed to <em>prevent<\/em> attacks, but in this case it <em>allows<\/em> an attack. That&rsquo;s the bug, the vulnerability. A sandboxed app can modify a file that is supposed to be protected by App Management.<\/p><p>[&#8230;]<\/p><p>This has all been just for illustration. It wasn&rsquo;t a real, viable attack, because I had to do everything manually. However, my disclosure yesterday presented an example of an automated tool that could execute a real attack.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/infosec.exchange\/@xnyhps\/110925831865637627\">Thijs Alkemade<\/a>:<\/p>\n<blockquote cite=\"https:\/\/infosec.exchange\/@xnyhps\/110925831865637627\"><p>When I looked at this feature before Ventura was released I immediately found 4 different ways to bypass it. It really looks like it hasn&rsquo;t been tested at all, as every potential method I&rsquo;ve thought of worked. But bypassing by using a sandboxed app was not something I could have imagined working. &#x1F602;<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/11\/07\/ventura-app-management\/\">Ventura App Management<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/11\/04\/sirispy-bug\/\">SiriSpy Bug<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/10\/29\/denis-tokarevs-four-zero-days\/\">Denis Tokarev&rsquo;s Four Zero-Days<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/09\/09\/security-researchers-unhappy-with-apples-bug-bounty-program\/\">Security Researchers Unhappy With Apple&rsquo;s Bug Bounty Program<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/07\/15\/distributing-unnotarized-mac-apps-in-an-rtfd-file\/\">Distributing Unnotarized Mac Apps in an RTFD File<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/07\/13\/more-trouble-with-the-apple-security-bounty\/\">More Trouble With the Apple Security Bounty<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/07\/22\/apple-security-research-device-program\/\">Apple Security Research Device Program<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/04\/28\/mac-sandbox-escape-via-textedit\/\">Mac Sandbox Escape via TextEdit<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/09\/25\/bypassing-mojave-security-protections\/\">Bypassing Mojave Security Protections<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Jeff Johnson (Mastodon): In retrospect, I regret participating in the Apple Security Bounty program. It has been a giant, frustrating waste of time, and I wish I had just dropped this 0day on October 24 of last year when Ventura was released. I suspect that if I had done so, Apple would have found a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2023-08-21T18:31:44Z","apple_news_api_id":"a014d16e-2bca-4c8a-affd-346bfaf0efe3","apple_news_api_modified_at":"2023-08-21T18:31:44Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AoBTRbivKTIqv_TRr-vDv4w","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[2098,131,30,2223,53,48,1050],"class_list":["post-40401","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apple-security-bounty","tag-bug","tag-mac","tag-macos-13-ventura","tag-sandboxing","tag-security","tag-textedit"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=40401"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40401\/revisions"}],"predecessor-version":[{"id":40402,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40401\/revisions\/40402"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=40401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=40401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=40401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}