Improper Control of Generation of Code ('Code Injection')
CVE-2022-21167
Summary
Several Masuit.Tools packages are vulnerable to Arbitrary Code Execution via the "ReceiveVarData<T>" function in the "SocketClient.cs" component. The socket client in the package can pass in the payload via the user-controllable input after it has been established, because this socket client transmission does not have the appropriate restrictions or type bindings for the "BinaryFormatter". This issue affects Masuit.Tools.Abstractions versions through 2.4.8.2, Masuit.Tools.Core versions 1.7.7 through 2.2.9.5, and 2.3.1.10 through 2.4.8.2, Masuit.Tools.Net versions 2.2.8.5 through 2.2.9.5, and 2.3.1.10 through 2.4.9.2, and Masuit.Tools.Net45 versions 2.4.3.3 through 2.4.9.2.
- LOW
- NETWORK
- HIGH
- UNCHANGED
- NONE
- NONE
- HIGH
- HIGH
CWE-94 - Code Injection
Code injection is a type of vulnerability that allows an attacker to execute arbitrary code. This vulnerability fully compromises the machine and can cause a wide variety of security issues, such as unauthorized access to sensitive information, manipulation of data, denial of service attacks etc. Code injection is different from command injection in the fact that it is limited by the functionality of the injected language (e.g. PHP), as opposed to command injection, which leverages existing code to execute commands, usually within the context of a shell.
References
Advisory Timeline
- Published