Oriel — AI & technology worth noticing, every day.

Pushing the Limits with Getaddrinfo

Web page · https://acid.vegas/blog/pushing-the-limits-with-getaddrinfo

First seen by Oriel on .

AI summary

The post demonstrates that glibc can resolve visually deceptive IPv4 forms, including Unicode lookalikes and invisible characters, creating bypasses for string-based filters and confusing URLs.

  • inet_aton() accepts decimal, hexadecimal, octal, mixed-base, over-padded, one-part, two-part, and three-part IPv4 representations.
  • When callers pass AI_IDN, glibc applies libidn2 UTS #46 mapping before numeric parsing, converting many Unicode characters into digits, letters, and dots.
  • The author tested every demonstrated form against 69.30.206.130; ping and curl successfully connected, while OpenBSD netcat failed without equivalent IDNA conversion.
  • curl percent-decodes URL hosts and can connect using percent-encoded digits, dots, or Unicode, while sending the normalized numeric representation in the Host header.
  • The recommended defense is resolving the input first, checking the resulting address, and connecting to that exact address instead of validating the original string.

#glibc #idna #ipv4 #ssrf

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 3, latest observation ; 0 over observed period since
  • Lobsters: 16, latest observation ; +14 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 0, latest observation ; 0 over observed period since
  • Lobsters: 0, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
Hacker News50391878https://acid.vegas/blog/pushing-the-limits-with-getaddrinfo/ Read discussion
Lobsters5cwnpuhttps://acid.vegas/blog/pushing-the-limits-with-getaddrinfo/ Read discussion