Description
luci-app-banip contains a log parsing vulnerability where the awk-based parser extracts the first IPv4 address from log lines regardless of field position, allowing attackers to inject arbitrary IPs via attacker-controlled fields like usernames. An unauthenticated remote attacker can inject an IP address into the login username field, causing banIP to block the wrong target while the real attacker remains unblocked.
Problem types
Improper Encoding or Escaping of Output
Product status
Any version
d9bbc372e29618a8807b693a1ccf6d0e42cd196c (git)
Credits
lujie (@lujiefsi)
References
github.com/...t/luci/security/advisories/GHSA-r6hx-4f83-vp8m (GitHub Security Advisory (GHSA-r6hx-4f83-vp8m))
github.com/...ommit/d9bbc372e29618a8807b693a1ccf6d0e42cd196c (Patch Commit)
www.vulncheck.com/...-banip-log-monitor-ip-extraction-bypass (VulnCheck Advisory: luci-app-banip Log Monitor IP Extraction Bypass)