A single quote can escape the JSON argument if keywords are interpolated directly into the shell example
Source references: 2The command template encloses JSON in shell single quotes, while keywords originate from user input. The supplied material does not require an argument array or reliable JSON and shell escaping. If an execution agent substitutes the placeholder directly, a keyword containing a quote and shell operators could terminate the argument and be interpreted by the shell.
A malicious or accidentally crafted search term could cause additional local commands to run with the agent's permissions, potentially reading or changing accessible files and credentials. This depends on the actual command-construction method and is not proof that execution will occur.
The visible command only single-quotes the placeholder `<JSON 参数>`; it does not show an implementation that directly concatenates a user-supplied keyword into a shell command. If an executor replaces that placeholder with an unescaped string, a quote in the keyword could enable shell injection. However, the command may instead be run using safe JSON serialization and a structured argument array. Without the script or command-building code, the risk cannot be confirmed. Users can ask for evidence that arguments are passed as structured argv values with correct JSON and shell-boundary encoding.
This assessment concerns the code and conditions shown, not proof that harm has occurred.```bashwecom-cli contact users search --json '<JSON 参数>'```Show 1 other places
|---|---|---|---|---|| `keywords` | string[] | 是 | — | 搜索关键词列表,可按姓名(用户名)/ 拼音 / 英文名 / 别名匹配,最多 10 个;多个关键词之间是 OR 关系 || `search_mode` | string | 否 | — | 搜索模式,默认不传该参数;仅当需要拿到完整人员名单时,才显式传 `"list"` |