Opt-in trust for user-installed CA certificates (replace always-on src="user")

オープン
#194 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
android

調査の方向性

res/xml/network_security_config.xml とリンクされている Android セキュリティドキュメントから始めて、ユーザーがインストールした CAs への信頼を実行時にオプトインできるかどうかを判断します。SSO トラフィックに対して Nextcloud Files アプリが使用しているアプローチと比較し、カスタムまたは拡張された TrustManager が必要かどうかを調査します。実行可能なアプローチとその適用範囲を文書化するか、要求された動作が実現不可能であることを確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

advanced

Problem

res/xml/network_security_config.xml trusts user-installed CAs for every host:

<base-config cleartextTrafficPermitted="false">
    <trust-anchors>
        <certificates src="system"/>
        <certificates src="user" tools:ignore="AcceptsUserCertificates" />
    </trust-anchors>
</base-config>

That is a MITM risk, especially for a password manager: any CA in the device user store can intercept HTTPS to Nextcloud. It exists so self-hosted servers with a private/internal CA still work.

Idea

Network Security Config cannot be toggled at runtime (it is compiled XML).
So the preferred way to trust user CAs only if the user enables it, needs a runtime solution, not a baked-in XML file solution.

Needs some research whether this is possible to solve at all.

Since SSO traffic goes through the Nextcloud Files app, may check how the files app handles that.

May we need to build an own TrustManager (or can extend the original one), but that needs definitely a lot of research or another app that already did that work :D

主要言語
C++
スター
103
フォーク
31
平均マージ
10時間 48分
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/passman-android のほかの issue

nextcloud/passman-android の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。