Bitbucket Server security advisory 2017-01-24

Bitbucket Server (formerly Stash)- Read-Only Anonymous Admin Access

要約An anonymous user can gain read-only access to some administrative pages.
リリース日

製品Bitbucket Server (formerly Stash)
影響を受けるバージョン
  • 2.4.2 <= version <  4.8.0

 

脆弱性の概要

An anonymous user can gain read-only access to some administrative pages by crafting a malicious GET request. This vulnerability is caused by an issue in Spring Security / MVC.

This advisory discloses a high severity security vulnerability which was introduced in version 2.4.2 of Bitbucket Server (formerly Stash). Versions of Bitbucket Server (formerly Stash) starting with 2.4.2 before 4.8.x are affected by this vulnerability. 

 

Customers who have upgraded Bitbucket Server (formerly Stash) to version 4.8.0 or higher are not affected.

Customers who are running Bitbucket Server (formerly Stash) version >= 2.4.2 and less than 4.8.0

 

Please upgrade your Bitbucket Server (formerly Stash) installations immediately to fix this vulnerability.


Bitbucket Server (formerly Stash) Read-Only Anonymous Admin Access

深刻度

アトラシアンはアトラシアンの重大度レベルで公開されているスケールに従って、この脆弱性の重大度レベルを高度として評価しています。このスケールによって、重大度を重大、高度、中度、低度として評価できます。

This is an independent assessment and you should evaluate its applicability to your own IT environment.

 

説明

An anonymous user can gain read-only access to some administrative pages by crafting a malicious GET request. This vulnerability is caused by an issue in Spring Security / MVC (CVE-2016-5007).

All versions of Bitbucket Server (formerly Stash) up to and including 4.7.2 are affected by this vulnerability. This issue can be tracked here:  BSERV-9469 - Getting issue details... STATUS


必要なアクション

Upgrade (recommended)

Atlassian recommend that you upgrade to the latest version. For a full description of the latest version of Bitbucket Server (formerly Stash) , see the release notes. You can download the latest version of Bitbucket Server (formerly Stash) from the Atlassian website.

 

Upgrade Bitbucket Server (formerly Stash) to version 4.8.0 or higher.

If you are running Bitbucket Server (formerly Stash) 4.7.2 or lower and cannot upgrade to 4.8.0 or higher then apply the workaround described below.

 

回避策

The best solution for fixing this vulnerability is to update to a fixed version. However if this is not possible, the below fix in the Spring MVC configuration is an accepted workaround to fix the vulnerability.  This vulnerability was originally detected in Spring Security (CVE-2016-5007).

A vulnerable configuration looks like this:

<!-- JSR-303 (bean validations) support will be detected on classpath and enabled automatically -->
	<mvc:annotation-driven validator="validator">
        <mvc:message-converters>
            <bean class="org.springframework.http.converter.BufferedImageHttpMessageConverter"/>
        </mvc:message-converters>
        </mvc:path-matching>
    </mvc:annotation-driven>

For customers running Bitbucket Server (any version >= 4.0), this can be found in the following file:

<INSTALL_DIRECTORY>/atlassian-bitbucket/WEB-INF/classes/stash-mvc.xml

For customers running Stash (any version <= 3.11.6), this can be found in the following file:

<INSTALL_DIRECTORY>/atlassian-stash/WEB-INF/classes/stash-mvc.xml


To apply the workaround:

  1. Shutdown Bitbucket Server (formerly Stash)
  2. Open the corresponding file (see above) with your editor of choice
  3. Remove the vulnerable code, and replace it with the code below:
<!-- JSR-303 (bean validations) support will be detected on classpath and enabled automatically -->
    <mvc:annotation-driven validator="validator">
        <mvc:message-converters>
            <bean class="org.springframework.http.converter.BufferedImageHttpMessageConverter"/>
        </mvc:message-converters>
        <mvc:path-matching suffix-pattern="false"  path-matcher="pathMatcher"  />
    </mvc:annotation-driven>
    <bean id="pathMatcher" class="org.springframework.util.AntPathMatcher">
	    <property name="trimTokens" value="false" />
    </bean>


Note: If you are running Bitbucket Server 4.8.x using your own Tomcat installation that is below version 8.0.36 then please apply the fix above. Please note we only support running Bitbucket Server with the bundled Tomcat version.


サポート

この勧告に関してご質問や懸念がある場合は、https://support.atlassian.com/ja/ でサポート リクエストを作成してください。

参考

セキュリティ バグの修正ポリシー

Atlassian の新しいポリシーにあるように、重大なセキュリティ バグの修正は、Jira と Confluence のメジャー ソフトウェア バージョンで最大 12 か月さかのぼってバックポートされます。新しいポリシーに挙げるバージョンについては、バイナリ パッチではなく新しいメンテナンス リリースを提供します。

Binary patches will no longer be released. 

セキュリティの問題の重大度レベルアトラシアンのセキュリティ勧告には重大度レベルと CVE ID が含まれます。重大度レベルは、それぞれの脆弱性についてアトラシアンが独自に計算した CVSS スコアに基づきます。CVSS は業界標準の脆弱性メトリックです。CVSS の詳細を FIRST.org でご確認ください。
サポート終了ポリシー サポート終了ポリシーは、製品によって異なります。詳細は、アトラシアンの「製品終了ポリシー」を参照してください。 
最終更新日: 2017 年 1 月 25 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.