sogno-platform / clonemap

cloud-native Multi-Agent Platform
Other
3 stars 0 forks source link

risk of code injection when creating agencies #10

Closed kwe712 closed 7 months ago

kwe712 commented 1 year ago

The function LocalStub.createAgency creates an agency, using go's exec package. In building the command for starting the agency's container, the name of a configured image is used without being checked first. This could make code injection possible if an image name is chosen containing ;, followed by any command. This command will be executed on the kubestub container. Depending on how it is set, the same problem may be caused by the log level setting

kwe712 commented 7 months ago

Fixed with PR #13