Improper input validation and improper control of code generation allow an authenticated attacker to perform code injection. By using the admin web console, an attacker can create a malicious broker name that bypasses validation to include an xbean binding. This binding can be utilized by a VM transport to load a remote Spring XML application. The attacker can then use the `DestinationView` mbean to trigger VM transport creation referencing the malicious broker name, leading to the loading of a malicious Spring XML context file. Since `ResourceXmlApplicationContext` instantiates all singleton beans before the `BrokerService` validates the configuration, arbitrary code execution occurs on the broker's JVM via bean factory methods such as `Runtime.exec()`.