Perdition IMAP代理str_vwrite函数远程格式串处理漏洞

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

BUGTRAQ ID: 26270 Perdition是一款POP3和IMAP4代理服务器。 Perdition IMAPD的一个IMAP输出字符串格式化函数中存在格式串漏洞,远程攻击者可能利用此漏洞控制服务器。 在某些情况下,未经验证便将IMAP标签(IMAP命令的最初部分)拷贝到了字符缓冲区,然后做为格式串将这个缓冲区传送给了vsnprintf()。在调用vsnprintf之前,执行了以下格式串验证以防范注入: str.c: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 168: static const char *__str_vwrite(io_t * io, const flag_t flag, 169: const size_t nargs, const char *fmt, va_list ap, 170: int *bytes) 171: { (...) 186: fmt_args = 0; 187: for (place = 0; fmt[place] != '\0'; place++) { 188: if (fmt[place] == '%') 189: fmt[place + 1] == '%' ? place++ : fmt_args++; 190: } 191: if (fmt_args != nargs) { (...) 195: VANESSA_LOGGER_DEBUG_UNSAFE("nargs and fmt mismatch: " 196: "%d args requested, %d args in format", 197: nargs, fmt_args); 198: return (NULL); 199: } 200: 201: *bytes = vsnprintf(__str_write_buf, STR_WRITE_BUF_LEN - 2, fmt, ap); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息