T03 · Remote Payload Retrieval and Execution
- Location
install.sh:216- Finding
Remote installation instructions execute mutable network content directly in a shell
- Content
View full analysis
/dev/null 2>&1; then warn "未找到 uv,跳过 wechat-article-to-markdown 安装" echo " 安装 uv:curl -LsSf https://astral.sh/uv/install.sh | sh" return 0 fi ``` ### Technical Analysis The installer does not execute these commands automatically; it prints them as recommended installation instructions. Nevertheless, the instructions pipe a mutable HTTPS response directly into `bash` or `sh`, without first saving, reviewing, or verifying the downloaded content. The referenced domains are recognizable official project domains, which reduces the likelihood of typo-squatting. However, HTTPS alone does not provide artifact integrity or protect against compromise of the upstream project, hosting account, DNS infrastructure, or content delivery system. The executed payload may also change after this Skill has been reviewed. This behavior is not required for the core wiki functionality. The Skill can continue with reduced adapter support when Bun or uv is unavailable, so direct remote shell execution exceeds the minimum installation mechanism necessary. ### Attack Path 1. Bun or uv is absent from the user's environment. 2. The installer prints a `curl | bash` or `curl | sh` command. 3. The user follows the installation recommendation. 4. An attacker who has compromised the referenced hosting infrastructure supplies a modified installer response. 5. The response is executed immediately by the user's shell. 6. The attacker obtains arbitrary code execution with all permissions available to the invoking user. ### Impact Assessment Successful exploitation permits arbitrary command execution under the user's account. This can ...[truncated 307 chars]- Remediation
View remediation
' bun-install.sh | shasum -a 256 -c - less bun-install.sh bash bun-install.sh ``` The checksum must come from an independently authenticated, version-specific release channel rather than from the same mutable response. ]]>
