Exploit database

GH-6942ad563eb21225bc40469b2e0acb09

crackercat/cve-2021-3438

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-3438

1 source

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

Repository files8
crackercat/cve-2021-3438Revision bc0fc31645db

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

CVE-2021-3438/string_utilities.c

C · 397 bytes
#include "leak_utilities.h"

int strcmp_suffix(char* str, char* suffix)
{
	unsigned long long string_length = 0ULL;
	unsigned long long suffix_length = 0ULL;

	if (!str || !suffix)
	{
		return 0;
	}

	string_length = strlen(str);
	suffix_length = strlen(suffix);

	if (suffix_length > string_length)
	{
		return 0;
	}

	return strncmp(str + string_length - suffix_length, suffix, suffix_length);
}