From c83a219ae40a3a56f40b3e64042963b93c0ad81c Mon Sep 17 00:00:00 2001 From: Metasploit Date: Tue, 16 Apr 2024 16:37:56 -0500 Subject: [PATCH] automatic module_metadata_base.json update --- db/modules_metadata_base.json | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/db/modules_metadata_base.json b/db/modules_metadata_base.json index 0b4db9c5f6bf..35c5fbda3c81 100644 --- a/db/modules_metadata_base.json +++ b/db/modules_metadata_base.json @@ -105476,6 +105476,69 @@ "session_types": false, "needs_cleanup": null }, + "exploit_multi/http/pgadmin_session_deserialization": { + "name": "pgAdmin Session Deserialization RCE", + "fullname": "exploit/multi/http/pgadmin_session_deserialization", + "aliases": [ + + ], + "rank": 600, + "disclosure_date": "2024-03-04", + "type": "exploit", + "author": [ + "Spencer McIntyre", + "Davide Silvetti", + "Abdel Adim Oisfi" + ], + "description": "pgAdmin versions <= 8.3 have a path traversal vulnerability within their session management logic that can allow\n a pickled file to be loaded from an arbitrary location. This can be used to load a malicious, serialized Python\n object to execute code within the context of the target application.\n\n This exploit supports two techniques by which the payload can be loaded, depending on whether or not credentials\n are specified. If valid credentials are provided, Metasploit will login to pgAdmin and upload a payload object\n using pgAdmin's file management plugin. Once uploaded, this payload is executed via the path traversal before\n being deleted using the file management plugin. This technique works for both Linux and Windows targets. If no\n credentials are provided, Metasploit will start an SMB server and attempt to trigger loading the payload via a\n UNC path. This technique only works for Windows targets. For Windows 10 v1709 (Redstone 3) and later, it also\n requires that insecure outbound guest access be enabled.\n\n Tested on pgAdmin 8.3 on Linux, 7.7 on Linux, 7.0 on Linux, and 8.3 on Windows. The file management plugin\n underwent changes in the 6.x versions and therefor, pgAdmin versions < 7.0 can not utilize the authenticated\n technique whereby a payload is uploaded.", + "references": [ + "CVE-2024-2044", + "URL-https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce/", + "URL-https://github.com/pgadmin-org/pgadmin4/commit/4e49d752fba72953acceeb7f4aa2e6e32d25853d" + ], + "platform": "Python", + "arch": "python", + "rport": 80, + "autofilter_ports": [ + 80, + 8080, + 443, + 8000, + 8888, + 8880, + 8008, + 3000, + 8443 + ], + "autofilter_services": [ + "http", + "https" + ], + "targets": [ + "Automatic" + ], + "mod_time": "2024-04-16 13:36:21 +0000", + "path": "/modules/exploits/multi/http/pgadmin_session_deserialization.rb", + "is_install_path": true, + "ref_name": "multi/http/pgadmin_session_deserialization", + "check": true, + "post_auth": false, + "default_credential": false, + "notes": { + "Stability": [ + "crash-safe" + ], + "SideEffects": [ + "artifacts-on-disk", + "ioc-in-logs" + ], + "Reliability": [ + "repeatable-session" + ] + }, + "session_types": false, + "needs_cleanup": null + }, "exploit_multi/http/phoenix_exec": { "name": "Phoenix Exploit Kit Remote Code Execution", "fullname": "exploit/multi/http/phoenix_exec",