Exploit database

GH-1ba85f33780d1ad282ded2e60d149cc1

delta-water/cve-2026-43499-phq110-root

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

168 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6
delta-water/cve-2026-43499-phq110-rootRevision aaafb42a353a

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

tools/termux_su.sh

Shell · 1,749 bytes
#!/data/data/com.termux/files/usr/bin/bash
# su — Termux 侧的 su 兼容层。
#
# 它不做任何提权:只是把命令交给 rootx.py(rootd:uid0 + u:r:shell:s0)。
# 所以它的能力边界 = rootd 的能力边界:uid 0、shell 域、SELinux Enforcing 不变。
#
# 支持:
#   su -c 'id'            # 最常见的写法
#   su root -c 'id'       # 位置参数写用户,只接受 root/0
#   su -s /system/bin/sh -c 'id'   # -s 被忽略(远端固定 /system/bin/sh)
#   echo 'id' | su        # 非 tty 的 stdin 当脚本读
# 不支持:
#   交互式 shell(没有 tty 转发)、-u/-g/-G 切别的 uid/组
#   -c 命令的 stdin 转发(rootx 不传 stdin)
set -u
ROOTX="${ROOTX:-$HOME/bin/rootx.py}"
U=""
CMD=""

usage() {
  cat >&2 <<'EOF'
用法: su [root|0] -c '命令'
      echo '脚本' | su
只支持 uid 0(rootd 固定 uid0);不支持交互式 shell。
EOF
}

while [ $# -gt 0 ]; do
  case "$1" in
    -c) shift; CMD="${1-}"; shift || true ;;
    -s|--shell|-p|-l|-m|--) shift ;;
    --shell=*) shift ;;
    -u|--user) U="${2-}"; shift 2 2>/dev/null || shift ;;
    -u*) U="${1#-u}"; shift ;;
    -g|--group|-G|--supp-group)
      echo "su: 不支持切换组" >&2; exit 2 ;;
    -*) echo "su: 未知选项 $1" >&2; usage; exit 2 ;;
    *)  if [ -z "$U" ] && [ -z "$CMD" ]; then U="$1"; shift; else CMD="$*"; break; fi ;;
  esac
done

if [ -n "$U" ] && [ "$U" != "0" ] && [ "$U" != "root" ]; then
  echo "su: 只支持 uid 0,收到 '$U'" >&2
  exit 2
fi

if [ -z "$CMD" ]; then
  if [ -t 0 ]; then usage; exit 2; fi
  CMD="$(cat)"
  [ -n "$CMD" ] || { echo "su: 空输入" >&2; exit 2; }
fi

[ -x "$ROOTX" ] || [ -f "$ROOTX" ] || { echo "su: 缺 $ROOTX" >&2; exit 2; }
exec python3 "$ROOTX" "$CMD"