termux / termux/termux-api

Check UID of the socket connection

Open
#501 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Because the sockets are created in the abstract namespace, anyone could create them or connect to them.
With the recent vulnerabilities in Termux maybe it would be good to add a UID check and only allow Termux and root to connect, the same on the termux-api-package side.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Locate the abstract-namespace socket creation and connection checks in the Java Android implementation, then inspect the corresponding termux-api-package side. Define how UID checks should permit Termux and root, and verify that unauthorized users cannot create or connect to the sockets on both sides.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, networking, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.