Exploit database

GH-ab6f016c05641cff058636496df8c4e8

sharathc213/cve-2023-7172

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-7172

2 sources

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

Repository files22
sharathc213/cve-2023-7172Revision 5fca5ab89bf5

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

src/hms/checklogin.php

PHP · 264 bytes
<?php
function check_login()
{
if(strlen($_SESSION['login'])==0)
	{	
		$host = $_SERVER['HTTP_HOST'];
		$uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
		$extra="../admin.php";		
		$_SESSION["login"]="";
		header("Location: http://$host$uri/$extra");
	}
}
?>