Exploit database

GH-7b151a0143f20a7d0db1c50402958cdd

vulnsvnc/cve-2026-134753

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-134753

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files4
vulnsvnc/cve-2026-134753Revision 22ea1a19afd7

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

poc/strl.c

C · 1,180 bytes
/*
 * strl.c - minimal strlcpy/strlcat shims for systems/toolchains that
 * do not provide them (needed when compiling decode_sniffer.c in
 * isolation, outside of dsniff's own ./configure-generated config.h
 * detection, e.g. on a glibc system where these are already provided
 * by glibc >= 2.38 and this file is a no-op fallback).
 */
#include <string.h>
#include <sys/types.h>

size_t strlcpy(char *dst, const char *src, size_t siz) {
    char *d = dst; const char *s = src; size_t n = siz;
    if (n != 0) {
        while (--n != 0) {
            if ((*d++ = *s++) == '\0')
                break;
        }
    }
    if (n == 0) {
        if (siz != 0)
            *d = '\0';
        while (*s++)
            ;
    }
    return (s - src - 1);
}

size_t strlcat(char *dst, const char *src, size_t siz) {
    char *d = dst; const char *s = src; size_t n = siz; size_t dlen;
    while (n-- != 0 && *d != '\0')
        d++;
    dlen = d - dst;
    n = siz - dlen;
    if (n == 0)
        return (dlen + strlen(s));
    while (*s != '\0') {
        if (n != 1) {
            *d++ = *s;
            n--;
        }
        s++;
    }
    *d = '\0';
    return (dlen + (s - src));
}