Exploit databaseDownload repository ZIP
GH-7c3f210736b96137d01066be808bddae
0x0d3ad/cve-2021-3129
Sources for CVE-2021-3129
36 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files9
0x0d3ad/cve-2021-3129Revision baf217c497da
- ↑..Parent directory
- RCE/
- FileDelete.php
- FileInclude.php
- FileRead.php
- FileWrite.php
- PHPInfo.php
- RCE.php
- SSRF.php
- SqlInjection.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/PHPGGC/GadgetChain/FileRead.php
PHP · 727 bytes<?php
namespace PHPGGC\GadgetChain;
abstract class FileRead extends \PHPGGC\GadgetChain
{
public static $type = 'FR';
public static $type_description = 'File read';
public static $parameters = [
'remote_path'
];
public function test_setup()
{
return [
'remote_path' => \PHPGGC\Util::rand_file('test file read')
];
}
public function test_confirm($arguments, $output)
{
$expected = file_get_contents($arguments['remote_path']);
return strpos($output, $expected) !== false;
}
public function test_cleanup($arguments)
{
if(file_exists($arguments['remote_path']))
unlink($arguments['remote_path']);
}
}