You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point, we can click the Generate Sitemap function to trigger code execution
The site generation function is to first write a file, and then perform a syntax check on the written PHP code. If the check passes, the code execution will be triggered.
eval($hook['code']);
We are accessing the website homepage file index.php
Proposed changes
Filter dangerous functions and content in the content before writing the file
The text was updated successfully, but these errors were encountered:
There is a remote command execution vulnerability
Affected version
login address
Find
PHP info
in theSystem
moduleGet the absolute path to the website in phpinfo information
Attack
Hooks
field in theSystem
moduleEdit
sitemapGeneration
inHooks
and saveGet absolute path from
PHPinfo
above_SERVER["DOCUMENT_ROOT"]=F:/phpStudy/PHPTutorial/WWW/subrion_cms_4.2.1/
At this point we can write webshell into the website’s homepage file index.php
payload
Generate Sitemap
function to trigger code executionThe site generation function is to first write a file, and then perform a syntax check on the written PHP code. If the check passes, the code execution will be triggered.
Proposed changes
Filter dangerous functions and content in the content before writing the file
The text was updated successfully, but these errors were encountered: