10 CVE-2023-46604

CISA Kev Catalog Exploit
 

The Java OpenWire protocol marshaller is vulnerable to Remote Code Execution. This vulnerability may allow a remote attacker with network access to either a Java-based OpenWire broker or client to run arbitrary shell commands by manipulating serialized class types in the OpenWire protocol to cause either the client or the broker (respectively) to instantiate any class on the classpath. Users are recommended to upgrade both brokers and clients to version 5.15.16, 5.16.7, 5.17.6, or 5.18.3 which fixes this issue.
https://nvd.nist.gov/vuln/detail/CVE-2023-46604

Categories

CWE-502 : Deserialization of Untrusted Data
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. Marshaling and unmarshaling are effectively synonyms for serialization and deserialization, respectively. In Python, the "pickle" functionality is used to perform serialization and deserialization. Some PHP application researchers use this term when attacking unsafe use of the unserialize() function; but it is also used for CWE-915. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified. When deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe. Explicitly define a final object() to prevent deserialization. Avoid having unnecessary types or gadgets (a sequence of instances and method invocations that can self-execute during the deserialization process, often found in libraries) available that can be leveraged for malicious ends. This limits the potential for unintended or unauthorized types and gadgets to be leveraged by the attacker. Add only acceptable classes to an allowlist. Note: new gadgets are constantly being discovered, so this alone is not a sufficient mitigation. Employ cryptography of the data or code for protection. However, it's important to note that it would still be client-side security. This is risky because if the client is compromised then the security implemented on the client (the cryptography) can be bypassed. chain: bypass of untrusted deserialization issue (CWE-502) by using an assumed-trusted class (CWE-183) Deserialization issue in commonly-used Java library allows remote execution. Deserialization issue in commonly-used Java library allows remote execution. Use of PHP unserialize function on untrusted input allows attacker to modify application configuration. Use of PHP unserialize function on untrusted input in content management system might allow code execution. Use of PHP unserialize function on untrusted input in content management system allows code execution using a crafted cookie value. Content management system written in PHP allows unserialize of arbitrary objects, possibly allowing code execution. Python script allows local users to execute code via pickled data. Unsafe deserialization using pickle in a Python script. Web browser allows execution of native methods via a crafted string to a JavaScript function that deserializes the string.

References


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* < 5.15.16
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* >= 5.16.0 < 5.16.7
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* >= 5.17.0 < 5.17.6
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:* >= 5.18.0 < 5.18.3
Configuration 2
cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* < 5.15.16
cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* >= 5.16.0 < 5.16.7
cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* >= 5.17.0 < 5.17.6
cpe:2.3:a:apache:activemq_legacy_openwire_module:*:*:*:*:*:*:*:* >= 5.18.0 < 5.18.3
Configuration 3
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Configuration 4
cpe:2.3:a:netapp:e-series_santricity_unified_manager:-:*:*:*:*:*:*:*
cpe:2.3:a:netapp:e-series_santricity_web_services_proxy:-:*:*:*:*:*:*:*
cpe:2.3:a:netapp:santricity_storage_plugin:-:*:*:*:*:vcenter:*:*


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
https://github.com/evkl1d/CVE-2023-46604
https://github.com/sule01u/CVE-2023-46604
https://github.com/justdoit-cai/CVE-2023-46604-Apache-ActiveMQ-RCE-exp
https://github.com/duck-sec/CVE-2023-46604-ActiveMQ-RCE-pseudoshell
https://github.com/NKeshawarz/CVE-2023-46604-RCE
https://github.com/mrpentst/CVE-2023-46604
https://github.com/ST3G4N05/ExploitScript-CVE-2023-46604
https://github.com/pulentoski/CVE-2023-46604

Other Nist (github, ...)

Url
https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-...
https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-...


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
586 Object Injection
High