{"id":28945,"date":"2020-05-14T15:09:08","date_gmt":"2020-05-14T19:09:08","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=28945"},"modified":"2021-07-06T17:00:31","modified_gmt":"2021-07-06T21:00:31","slug":"security-flaws-in-adobe-acrobat-reader","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/05\/14\/security-flaws-in-adobe-acrobat-reader\/","title":{"rendered":"Security Flaws in Adobe Acrobat Reader"},"content":{"rendered":"<p><a href=\"https:\/\/rekken.github.io\/2020\/05\/14\/Security-Flaws-in-Adobe-Acrobat-Reader-Allow-Malicious-Program-to-Gain-Root-on-macOS-Silently\/\">Yuebin Sun<\/a> (<a href=\"https:\/\/twitter.com\/yuebinsun\/status\/1260899932145213441\">tweet<\/a>, <a href=\"https:\/\/www.macrumors.com\/2020\/05\/14\/adobe-acrobat-security-vulnerabilities-mac\/\">MacRumors<\/a>):<\/p>\n<blockquote cite=\"https:\/\/rekken.github.io\/2020\/05\/14\/Security-Flaws-in-Adobe-Acrobat-Reader-Allow-Malicious-Program-to-Gain-Root-on-macOS-Silently\/\"><p>Today, Adobe Acrobat Reader DC for macOS patched three critical vulnerabilities [&#8230;] I reported. The only requirement needed to trigger the vulnerabilities is that Adobe Acrobat Reader DC has been installed. A normal user on macOS(with SIP enabled) can locally exploit this vulnerabilities chain to elevate privilege to the ROOT without a user being aware.<\/p>\n<p>[&#8230;]<\/p>\n<p><code>SMJobBlessHelper<\/code> is based on <code>NSXPC<\/code>, its client checking exists in <code>[SMJobBlessHelper listener:shouldAcceptNewConnection:]<\/code>. The checking logic is as pseudo-code shows below, gets the client&rsquo;s PID, and then obtains Bundle ID based on the client&rsquo;s process path, the client will be trusted if its Bundle ID is &ldquo;com.adobe.ARMDC&rdquo;.<\/p>\n<p>[&#8230;]<\/p>\n<p>Yes, the symlink is still valid, it can help us to bypass temp directory protection. I can force <tt>\/var\/folders\/zz\/xxxxx\/T\/download\/ARMDCHammer<\/tt> to link to anywhere.<\/p>\n<p>[&#8230;]<\/p>\n<p>So if we can replace the &ldquo;\/tmp\/test\/hello_root&rdquo; with our malicious file after validateBinary, launchARMHammer will launch our malicious process.<\/p>\n<p>You may think the race condition window is too narrow to control, I will show the tricks later.<\/p><\/blockquote>\n\n<p>I don&rsquo;t like it when third-party code uses the name of a system class or function as a prefix.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/04\/20\/privileged-operations-on-macos\/\">Privileged Operations on macOS<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/09\/02\/privilegedhelpertools-and-checking-xpc-peers\/\">PrivilegedHelperTools and Checking XPC Peers<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Yuebin Sun (tweet, MacRumors): Today, Adobe Acrobat Reader DC for macOS patched three critical vulnerabilities [&#8230;] I reported. The only requirement needed to trigger the vulnerabilities is that Adobe Acrobat Reader DC has been installed. A normal user on macOS(with SIP enabled) can locally exploit this vulnerabilities chain to elevate privilege to the ROOT without [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-05-14T19:09:11Z","apple_news_api_id":"952e6d71-694e-4110-8384-714bd9aca19c","apple_news_api_modified_at":"2021-07-06T21:00:36Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AlS5tcWlOQRCDhHFL2ayhnA","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":[4],"tags":[563,131,2095,30,32,1666,345,71,48,1473],"class_list":["post-28945","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-acrobat","tag-bug","tag-exploit","tag-mac","tag-macapp","tag-macos-10-15","tag-pdf","tag-programming","tag-security","tag-xpc"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28945","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=28945"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28945\/revisions"}],"predecessor-version":[{"id":28946,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28945\/revisions\/28946"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=28945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=28945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=28945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}