Yesterday I found xss in front-end, so I was wondering if the backend could execute the command
I found the place in the backend plugin that triggers command execution
first,we login into backend,and visit http://apupig.top/admin.php?page=plugins&tab=new
and download LocalFiles Editor
then click Activate it now
then click 1,2 in order, we will visit http://xxx.xxx/admin.php?page=plugin-LocalFilesEditor
we type ,then click save file
system($_POST[1]);
we can find detail in plugins/LocalFilesEditor/admin.php
it just uses the function stripslashes to handle parameters without filtering dangerous functions
so we can rce!
Yesterday I found xss in front-end, so I was wondering if the backend could execute the command
I found the place in the backend plugin that triggers command execution
first,we login into backend,and visit `http://apupig.top/admin.php?page=plugins&tab=new`
and download `LocalFiles Editor`

then click `Activate it now`

then click 1,2 in order, we will visit `http://xxx.xxx/admin.php?page=plugin-LocalFilesEditor`

we type ,then click save file
```php
system($_POST[1]);
```

we can find detail in `plugins/LocalFilesEditor/admin.php`

it just uses the function `stripslashes` to handle parameters without filtering dangerous functions
so we can rce!

<!-- github-sync-id:1081673770 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Yesterday I found xss in front-end, so I was wondering if the backend could execute the command
I found the place in the backend plugin that triggers command execution
first,we login into backend,and visit
http://apupig.top/admin.php?page=plugins&tab=newand download
LocalFiles Editorthen click
Activate it nowthen click 1,2 in order, we will visit
http://xxx.xxx/admin.php?page=plugin-LocalFilesEditorwe type ,then click save file
we can find detail in
plugins/LocalFilesEditor/admin.phpit just uses the function
stripslashesto handle parameters without filtering dangerous functionsso we can rce!