A backdoor URL means that resources that do not need to be called can be accessed directly through a URL.
A backdoor URL means that resources that do not need to be called can be accessed directly through a URL.
For example, the following WEB application may display sensitive information to login users:
The Code is as follows:
$ Authenticated = FALSE;
$ Authenticated = check_auth ();
If ($ authenticated)
{
Include './sensitive. php ';
}
?>
Because sensitive. php is located in the home directory of the website, the file can be directly accessed by skipping the authentication mechanism in the browser. This is because all files in the home directory of the website have a corresponding URL address. In some cases, these scripts may execute an important operation, which increases the risk.
To prevent webshell URLs, make sure that all the files contained are stored outside the home directory of the website. All files stored in the home directory of the website must be directly accessed through URLs.