Exploit databaseDownload repository ZIP
GH-f7d33792e90befc1a6e1ace9b45e22b9
affan-7/semgrep-integration-1
Sources for CVE-2023-39848
53 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files13
affan-7/semgrep-integration-1Revision 5e695041439c
- ↑..Parent directory
- check_token_high.php
- check_token_impossible.php
- download_ecb_attack.php
- download_oracle_attack.php
- ecb_attack.php
- high.php
- impossible.php
- low.php
- medium.php
- oracle_attack.php
- token_library_high.php
- token_library_impossible.php
- xor_theory.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabilities/cryptography/source/check_token_impossible.php
PHP · 518 bytes<?php
require_once ("token_library_impossible.php");
$ret = "";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if ($_SERVER['CONTENT_TYPE'] != "application/json") {
$ret = json_encode (array (
"status" => 527,
"message" => "Content type must be application/json"
));
} else {
$token = $jsonData = file_get_contents('php://input');
$ret = check_token ($token);
}
} else {
$ret = json_encode (array (
"status" => 405,
"message" => "Method not supported"
));
}
print $ret;
exit;