]> git.kaiwu.me - nginx.git/commit
Mail: host validation.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 26 Feb 2026 07:52:53 +0000 (11:52 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 24 Mar 2026 14:46:08 +0000 (18:46 +0400)
commit6f3145006b41a4ec464eed4093553a335d35e8ac
tree70a4980776583d6e613e48d62dd8f8d901624212
parent9739e755b8dddba82e65ca2a08d079f4c9826b75
Mail: host validation.

Now host name resolved from client address is validated to only contain
the characters specified in RFC 1034, Section 3.5.  The validation allows
to avoid injections when using the resolved host name in auth_http and
smtp proxy.

Reported by Asim Viladi Oglu Manizada, Colin Warren,
Xiao Liu (Yunnan University), Yuan Tan (UC Riverside), and
Bird Liu (Lanzhou University).
src/mail/ngx_mail_smtp_handler.c