BUG: A critical vulnerability of VLESS clients has recently been discovered
https://habr.com/ru/articles/1020080/
This problem affects most of Russia. The Ministry of digital "development" is now actively requiring all services (banks, marketplaces, and so on) to introduce a system that will track the source IP of the VPN and send it to Roskomnadzor, which handles all censorship in the country. So, in fact, almost any popular Russian application will become spyware.
Title: Critical Vulnerability: Unauthenticated local SOCKS5 proxy leaks exit IP and bypasses split tunneling
Description: NekoBox currently runs a local SOCKS5 proxy without authentication. This creates a critical privacy flaw allowing malicious apps or state-sponsored spyware to entirely bypass VpnService per-app split tunneling.
Since the loopback interface (127.0.0.1) remains accessible even within Android private spaces (Knox, Shelter, Island), any app can scan standard localhost ports, connect directly to the open SOCKS5 proxy, and expose the real exit IP of the VPN server. Censors are actively weaponizing this exact method to discover and block personal VPN nodes.
Proof of Concept (PoC):
Per-app split tunneling bypass: https://github.com/runetfreedom/per-app-split-bypass-poc
Advanced VPN port detector: https://github.com/cherepavel/VPN-Detector
Proposed Solution:
Implement mandatory username/password authentication for the local SOCKS5 proxy.
Forcefully disable UDP routing whenever SOCKS5 authentication is enabled, as the SOCKS5 protocol specification fundamentally does not authenticate UDP traffic, leaving the leak open if UDP remains active.
DUB https://github.com/MatsuriDayo/NekoBoxForAndroid/issues/1153 solution https://github.com/MatsuriDayo/NekoBoxForAndroid/issues/1153#issuecomment-4198991433 full solution https://github.com/MatsuriDayo/NekoBoxForAndroid/issues/1153#issuecomment-4201663469
I have made a fork and hardened the auth for socks + some sort of measures for hostile apps
The worst venurability is the android itself. It allows all apps to view all network devices (including your tun0), it allows them to scan ports and find your proxy or whatever. I mean i do like android but sometimes I prefer ios which have more strict rules for apps.
And there is a solution - use isolated workspaces with "shelter", put spyware there. That way you isolate your real network from the container, spyware there still can scan network, but since it separated they will never know about your proxy or tun0 virtual network device. P.S. Also this container network completely bypasses nekobox, so those apps will already be in direct connection by the android
The worst venurability is the android itself. It allows all apps to view all network devices (including your tun0), it allows them to scan ports and find your proxy or whatever. I mean i do like android but sometimes I prefer ios which have more strict rules for apps.
And there is a solution - use isolated workspaces with "shelter", put spyware there. That way you isolate your real network from the container, spyware there still can scan network, but since it separated the will never know about your proxy or tun0 virtual network device. P.S. Also this container network completely bypasses nekobox, so those apps will already be in direct connection by the android
As far as I know, even an isolated environment allows spyware applications to do the same thing, well, or so, to solve this problem, root permissions and several magisk utilities are required. But this is not for every user, and these solutions are also temporary. for example https://github.com/okhsunrog/vpnhide