Exploit databaseDownload repository ZIP
GH-a9f263005a62386de88d448cf2d9809f
adiyatzzz/2210010013_muhammad-adiyat_testing-dvwa
Sources for CVE-2023-39848
53 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files10
adiyatzzz/2210010013_muhammad-adiyat_testing-dvwaRevision 236bf7f2f834
- ↑..Parent directory
- GenericController.php
- HealthController.php
- Helpers.php
- Login.php
- LoginController.php
- Order.php
- OrderController.php
- Token.php
- User.php
- UserController.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabilities/api/src/Helpers.php
PHP · 418 bytes<?php
namespace Src;
class Helpers {
public static function check_content_type() {
if (array_key_exists ("CONTENT_TYPE", $_SERVER) && $_SERVER['CONTENT_TYPE'] == "application/json") {
return true;
} else {
$response['status_code_header'] = 'HTTP/1.1 415 Unsupported Media Type';
$response['body'] = json_encode (array ("status" => "Invalid content type, expected JSON"));
return $response;
}
}
}