{"id":20969,"date":"2015-10-03T08:25:38","date_gmt":"2015-10-03T01:25:38","guid":{"rendered":"http:\/\/deepquest.code511.com\/blog\/2015\/10\/issetugid-rsh-libmalloc-os-x-local-root\/"},"modified":"2015-10-03T08:25:38","modified_gmt":"2015-10-03T01:25:38","slug":"issetugid-rsh-libmalloc-os-x-local-root","status":"publish","type":"post","link":"https:\/\/deepquest.code511.com\/blog\/2015\/10\/issetugid-rsh-libmalloc-os-x-local-root\/","title":{"rendered":"issetugid() + rsh + libmalloc OS X Local Root"},"content":{"rendered":"<p>The default root-suid binary \/usr\/bin\/rsh on Mac OS X uses execv() in an insecure manner. \/usr\/bin\/rsh will invoke \/usr\/bin\/rlogin if launched with only a host argument, without dropping privileges or clearing the environment. This exploit will pass &#8220;MallocLogFile&#8221; to \/usr\/bin\/rsh, which is then passed on to rlogin and interpreted by libmalloc to create a root-owned file with partially controlled contents at \/etc\/crontab which gives a rootshell via sudo. Tested on 10.9.5 \/ 10.10.5 but it most likely works on much older versions too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The default root-suid binary \/usr\/bin\/rsh on Mac OS X uses execv() in an insecure manner. \/usr\/bin\/rsh will invoke \/usr\/bin\/rlogin if launched with only a host argument, without dropping privileges or&#8230;<\/p>\n","protected":false},"author":439,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[43],"tags":[],"class_list":["post-20969","post","type-post","status-publish","format-standard","hentry","category-exploit"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4bBYZ-5sd","_links":{"self":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/20969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/users\/439"}],"replies":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/comments?post=20969"}],"version-history":[{"count":0,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/20969\/revisions"}],"wp:attachment":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media?parent=20969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/categories?post=20969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/tags?post=20969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}