{"id":269,"date":"2005-05-01T08:16:50","date_gmt":"2005-05-01T01:16:50","guid":{"rendered":""},"modified":"2005-05-01T08:16:50","modified_gmt":"2005-05-01T01:16:50","slug":"mac-os-x-cocktail-3-5-4-admin-password-disclosure","status":"publish","type":"post","link":"https:\/\/deepquest.code511.com\/blog\/2005\/05\/mac-os-x-cocktail-3-5-4-admin-password-disclosure\/","title":{"rendered":"Mac OS X Cocktail 3.5.4 admin password disclosure"},"content":{"rendered":"<p>Cocktail needs administrative privileges the user is<br \/>\nprompted for the admin password upon startup. The actual<br \/>\nmaintenance is done by command line utilities that are executed<br \/>\nin an insecure manner: Cocktail creates a new process and<br \/>\nlets \/bin\/sh pipe the admin password using echo into sudo,<br \/>\nwhich then will execute the utility, like this:<\/p>\n<p>sh -c echo &#8216;PASSWORD&#8217; | sudo -p &#8220;&#8221; -S sudo update_prebinding -root \/<!--more--><\/p>\n<p>Exploitation:<\/p>\n<p>Knowing Cocktail is waiting for some Unix utility to have finished its work, just execute &#8220;ps ax&#8221; on the terminal and search for the password.<\/p>\n<p>The vendor has been contacted; the new version 3.6 for Mac OS X &#8220;Tiger&#8221; should have been fixed. I haven&#8217;t tested this version, though.<\/p>\n<p>by sonderling<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac OS X Cocktail 3.5.4 admin password disclosure<\/p>\n","protected":false},"author":1,"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":[4],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-apple"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4bBYZ-4l","_links":{"self":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/269","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":0,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}