Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

ThinkPHP Information Leak

Discovered in ThinkPHP 5.0.24 default page.

While the PATHINFO hasn't been configured then ThinkPHP would receive parameter like http://serverName/index.php?s=/ modular / controller / operation /[ Parameter name / Parameter values ...].

If the modular has not been found, system information would be a leak.

PoC

Given the following request parameter in index.php:

GET /index.php?s=example HTTP/1.1

1.png

Got the following system information:

Server/Request Data

2.png

ThinkPHP Constants

3.png

Summary

The default page of ThinkPHP has the problem of information leakage. Some sensitive system information is leaked.