Information

Vendor: SGAI

Affected products: Space1 NAS - N1211DS ≤ v1.0.915

Vendor Homepage: https://www.aigyzn.com/

Vendor contact information: https://www.aigyzn.com/contact/ - sgai@aigyzn.com

Description

The SGAI Space1 NAS (model N1211DS, firmware version v1.0.915) contains an unauthorized remote command execution vulnerability caused by command injection. An attacker who has not verified their identity can use the OPERATE_FILE command interface to manipulate files or directories whose name containing malicious commands, thereby triggering a command injection vulnerability and gaining the highest level of control over the remote target NAS device.

Details

The vulnerability is located in the binary file gsaiagent.

image.png

In the sub_35808 function corresponding to the OPERATE_FILE command interface, the path field is retrieved.

image.png

Copy the obtained parameters into the v15 structure.

image.png

Next, the sub_28F84 function is invoked.

image.png

Specifically, the sub_2882C function is invoked.

image.png

Next, for example, for deletion, i.e., moving to the recycle bin (type=3), the sub_7EE18 function is invoked.

image.png