Implement SSL Pinning for enhanced network security

Open
#6,814 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
android, kotlin
Domain
mobile, security

Research direction

Start by locating where the app configures OkHttp HTTPS connections, then read OkHttp's CertificatePinner guidance and identify the Wikimedia server hosts and public keys that would need pinning. Done means the app pins the intended servers without breaking legitimate connections; the issue does not specify keys, hosts, or a verification plan, so those need clarification.

Written by the indexing model from the issue text.

Description

Currently, the application relies on the device's default trust store for validating HTTPS connections. This leaves the app potentially vulnerable to Man-in-the-Middle (MITM) attacks if a user connects to a compromised network or inadvertently installs a malicious root certificate on their device.

Proposed Solution
To fortify the application's network security, we should implement SSL Pinning using OkHttp CertificatePinner. By explicitly pinning the public keys of the Wikimedia servers, we can ensure the app only communicates with our legitimate servers, even if the device's trust store is compromised.

Dominant language
Kotlin
Stars
1.2k
Forks
1.4k
Avg merge
1d 4h
Merged PRs (30d)
156

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commons-app/apps-android-commons

All issues in commons-app/apps-android-commons

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.