T09 · Insecure Skill Coding Practices
Error
- Location
- references/doc_2337.md:1164
- Finding
- Predictable Administrative Credentials in Cluster Replication Configuration## Vulnerability Details **File Location**: `references/doc_2337.md:1164-1171` **Vulnerability Type**: Hard-coded predictable administrative credentials **Risk Level**: High **Vulnerable Code**: ```text clusterReplicationExecutionUsername=admin Used to execute inter-cluster asynchronous replication. The default is admin. clusterReplicationExecutionPassword=123456 Used as the password for inter-cluster asynchronous replication. The default is 123456. ``` ### Technical Analysis The documentation presents a privileged replication account with the predictable username `admin` and password `123456`. The replication identity requires transaction-related permissions and can therefore perform security-sensitive operations against replicated databases. Although this content is documentation rather than automatically executed code, users or AI agents may reproduce the configuration verbatim. A publicly known default password provides no meaningful protection against credential guessing. The documentation notes that newer releases use RSA authentication, but the insecure credential remains applicable to configurations or versions that use the password parameter. ### Attack Path 1. An administrator or AI agent copies the documented replication configuration. 2. The administrator does not replace the example password. 3. An attacker identifies a reachable DolphinDB node through network scanning, leaked configuration, or infrastructure knowledge. 4. The attacker attempts authentication with the documented `admin` and `123456` credentials. 5. If accepted, the attacker obtains the transaction and replication privileges assigned to the replication account. 6. The attacker can access, alter, or interfere with data available through that account. ### Impact Assessment Successful exploitation can grant privileged database access, including transaction execution and interference with inter-cluster replication. Depending on the pe ...[truncated 381 chars]
- Remediation
- ## Remediation Suggestions - Replace literal credentials with explicit placeholders such as `REPLICATION_USER` and `REPLICATION_PASSWORD_FROM_SECRET_MANAGER`. - State prominently that examples must never use default or shared administrative credentials. - Require a dedicated replication account with only the minimum transaction and database permissions needed for replication. - Prefer the RSA-based authentication mechanism documented for DolphinDB 3.00.1 and later. - Generate unique, high-entropy credentials for deployments that still require password authentication. - Store credentials in a protected secret manager or encrypted configuration facility rather than source-controlled files. - Restrict replication ports to explicitly authorized cluster nodes using host firewalls and network access controls. - Rotate any existing deployment that uses `admin` and `123456`, and review authentication logs for prior use.
