ProFTPD SReplace远程单字节溢出漏洞 CVE-2006-5815 CNNVD-200611-144 CNVD-2006-8419 CNNVD-200611-490

10.0 AV AC AU C I A
发布: 2006-11-08
修订: 2018-10-17

ProFTPD是一款开放源代码FTP服务程序。 ProFTPD的src/support.c文件中的sreplace()函数在处理特制请求时存在单字节溢出漏洞。漏洞分析代码如下: \"\"\" char *sreplace(pool *p, char *s, ...) { va_list args; char *m,*r,*src = s,*cp; char **mptr,**rptr; char *marr[33],*rarr[33]; char buf[PR_TUNABLE_PATH_MAX] = {\'\'\0\'\'}, *pbuf = NULL; size_t mlen = 0, rlen = 0, blen; int dyn = TRUE; cp = buf; *cp = \'\'\0\'\'; memset(marr, \'\'\0\'\', sizeof(marr)); memset(rarr, \'\'\0\'\', sizeof(rarr)); blen = strlen(src) + 1; va_start(args, s); while ((m = va_arg(args, char *)) != NULL & & mlen < sizeof(marr)-1) { char *tmp = NULL; size_t count = 0; if ((r = va_arg(args, char *)) == NULL) break; /* Increase the length of the needed buffer by the difference between * the given match and replacement strings, multiplied by the number * of times the match string occurs in the source string. */ tmp = strstr(s, m); while (tmp) { pr_signals_handle(); count++; /* Be sure to increment the pointer returned by strstr(3), to * advance past the beginning of the...

0%
当前有11条漏洞利用/PoC
当前有1条受影响产品信息