Skip to content

V3locidad/GLPI_POC_Plugins_Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

GLPI_POC_Plugins_Shell

Description Summary

It is possible, with the 'shell commands' plugin, to execute code on the server, thereby allowing remote command execution (RCE)

Details

There are several things to consider, as it is possible, in the 'Path', to specify the command we want to execute. Moreover, in the [NAME] section for the computer's name, we can put whatever we want, be it a link or a command.

PoC

In the 'Path' section, we add the wget command

318229839-971a2c5a-c18a-4c94-bae7-c94711aa5687

In the TAG, we put [NAME]

318229886-b45b8759-4732-439a-badf-844747520b55

In 'Associated Item', we add 'computer'

318229930-59b3e30d-f22c-4534-9aa8-aadd29a0dfd8

Now, let's put a shell.php file on our computer and set up a web server

318229970-014727d1-5655-4ae9-b206-7a377b452b4c

We create a new computer with our web server in the NAME section

318230011-35ed15f0-d32a-4f16-8bfb-35b25ba4100b

In the 'Shell Commands' tab on the computer, we can launch our command

318230089-60ea78fa-a66d-4dbe-b1df-3dcd9c84e27a

We can see that the command has been successfully executed

318230186-47177555-4af3-4434-a68a-9acb102fb896

We start listening on our computer.

318230226-3bca4a1e-1269-4fce-945d-2b01705d9f69

We go to the link where our shell.php file is located (it is accessible without authentication)

318230251-ea8768af-16cd-4d44-957b-c467d90f5ba6

We have obtained a shell on the server

318230299-3224033b-1a4e-4bca-b3de-c4214e1bcb68

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published