Exploit databaseDownload repository ZIP
GH-aa6e6d875f70a9a0f63f003f8c906ac0
appsecrani/cve-2011-4862
Sources for CVE-2011-4862
9 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
appsecrani/cve-2011-4862Revision e64542ddd2f7
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
patch.c
C · 713 bytesIndex: crypto/heimdal/appl/telnet/libtelnet/encrypt.c
===================================================================
// Around line 736, make the following changes to fix the vulnerable code
int dir = kp->dir;
int ret = 0;
+ if (len > MAXKEYLEN)
+ len = 0;
+
if (!(ep = (*kp->getcrypt)(*kp->modep))) {
if (len == 0)
return;
Index: contrib/telnet/libtelnet/encrypt.c
===================================================================
// Around line 736, make the following changes to fix the vulnerable code
int dir = kp->dir;
int ret = 0;
+ if (len > MAXKEYLEN)
+ len = 0;
+
if (!(ep = (*kp->getcrypt)(*kp->modep))) {
if (len == 0)
return;