T09 · Insecure Skill Coding Practices
- Location
config.env:4- Finding
Hardcoded SiYuan API Credential in Distributed Configuration
- Content
View full analysis
`. 4. The attacker invokes any endpoint permitted by that token, potentially including notebook queries, document modification, file operations, asset uploads, and deletion operations. ### Impact Assessment The exact impact depends on server-side token permissions and network reachability. Based on the API operations implemented by the Skill, a compromised token could potentially permit: - Reading task, document, block, and notebook metadata. - Creating or modifying task rows and documents. - Renaming or deleting documents. - Uploading files into SiYuan assets. - Reading or writing SiYuan data files accepted by the API. - Executing arbitrary SQL queries supported by SiYuan's query endpoint. This can compromise the confidentiality, integrity, and availability of the affected SiYuan instance. ]]>- Remediation
View remediation
