Introduction
We express our gratitude to the CredioLabs team for the collaborative engagement that enabled the execution of this Security Assessment.
Document | |
|---|---|
| Name | Secure Code Review and Security Analysis Report for CredioLabs |
| Audited By | Abdelfattah Ibrahim |
| Approved By | Ece Orsel |
| Website | https://crediolabs.ai/→ |
| Changelog | 28/10/2026 - Preliminary Report |
| 30/10/2026 - Final Report | |
| Language | TypeScript |
| Tags | Pentest (White-box) |
| Methodology | https://docs.hacken.io/methodologies/dapp-audit-methodology→ |
Document
- Name
- Secure Code Review and Security Analysis Report for CredioLabs
- Audited By
- Abdelfattah Ibrahim
- Approved By
- Ece Orsel
- Website
- https://crediolabs.ai/→
- Changelog
- 28/10/2026 - Preliminary Report
- 30/10/2026 - Final Report
- Language
- TypeScript
- Tags
- Pentest (White-box)
Review Scope | |
|---|---|
| Repository | https://github.com/untangledfinance/oz-policy-builder→ |
| Commit | e586840 |
| Final Commit | 286a3fc |
Review Scope
- Commit
- e586840
- Final Commit
- 286a3fc
Audit Summary
The system users should acknowledge all the risks summed up in the risks section of the report
{FindingsVulnSeverityStatusTable}
System Overview
TypeScript monorepo of off-chain tooling for OpenZeppelin smart accounts on Stellar (Soroban). The tooling lets an AI agent request narrowly scoped spending permissions on a user's smart account. It turns a plain intent or a recorded transaction into a rule enforced on-chain by a deployed policy interpreter contract. It then builds the unsigned add_context_rule or remove_context_rule transaction that installs or removes that rule. The core library, policy-synth, synthesizes and encodes rules and checks them against the account's existing rules and the live interpreter. It enforces builder-side safety checks such as amount caps, slippage floors, signer thresholds and interpreter pinning, and it lets callers verify or simulate a rule before installing it. It also renders a human-readable review card that the account owner inspects through review_unsigned before signing. These features are exposed through a command-line tool (policy-builder-cli) and an MCP server (policy-builder-mcp), which serves AI agents over stdio by default or over an optional loopback HTTP mode.
Findings
Code ― | Title | Status | Severity | |
|---|---|---|---|---|
| F-2026-2015 | Malformed request path crashes the MCP HTTP server before its Host/Origin guard | fixed | Medium | |
| F-2026-2015 | The builder's amount and slippage checks can be bypassed, producing uncapped rules with no warning | fixed | Low | |
| F-2026-2015 | Shortened addresses let a fake recipient look identical on the review card | fixed | Low | |
| F-2026-2015 | The review card renders scaled bounds as exact division while the interpreter truncates | fixed | Low | |
| F-2026-2015 | Exponential selector expansion lets the agent crash the owner's review_unsigned process | fixed | Low | |
| F-2026-2015 | Unvalidated tool input is reprocessed in loops, blocking the MCP HTTP server | fixed | Observation | |
| F-2026-2015 | Oversized tool input crashes the MCP HTTP server through memory exhaustion | fixed | Observation |
Appendix 1. Severity Definitions
Findings are categorized based on their potential impact and assigned a severity level using the Common Vulnerability Scoring System (CVSS) version 4.0: →
Severity | Description |
|---|---|
Critical | These issues present a major security vulnerability that poses a severe risk to the system. They require immediate attention and must be resolved to prevent a potential security breach or other significant harm. |
High | These issues present a significant risk to the system, but may not require immediate attention. They should be addressed in a timely manner to reduce the risk of the potential security breach. |
Medium | These issues present a moderate risk to the system and cannot have a great impact on its function. They should be addressed in a reasonable time frame, but may not require immediate attention. |
Low | These issues present no risk to the system and typically relate to the code quality problems or general recommendations. They do not require immediate attention and should be viewed as a minor recommendation. |
Severity
- Critical
Description
- These issues present a major security vulnerability that poses a severe risk to the system. They require immediate attention and must be resolved to prevent a potential security breach or other significant harm.
Severity
- High
Description
- These issues present a significant risk to the system, but may not require immediate attention. They should be addressed in a timely manner to reduce the risk of the potential security breach.
Severity
- Medium
Description
- These issues present a moderate risk to the system and cannot have a great impact on its function. They should be addressed in a reasonable time frame, but may not require immediate attention.
Severity
- Low
Description
- These issues present no risk to the system and typically relate to the code quality problems or general recommendations. They do not require immediate attention and should be viewed as a minor recommendation.
Appendix 2. Scope
The scope of the project includes the following:
Scope Details | |
|---|---|
| Repository | https://github.com/untangledfinance/oz-policy-builder→ |
| Commit | e586840 |
| Final Commit | 286a3fc |
Scope Details
- Commit
- e586840
- Final Commit
- 286a3fc
Assets in Scope
Appendix 3. Additional Valuables
Frameworks and Methodologies
This security assessment was conducted in alignment with recognised penetration testing standards, methodologies and guidelines, including the NIST SP 800-115 – Technical Guide to Information Security Testing and Assessment →, the Penetration Testing Execution Standard (PTES) →, and the OWASP Testing Guide →. These assets provide a structured foundation for planning, executing, and documenting technical evaluations such as vulnerability assessments, exploitation activities, and security code reviews. Hacken’s internal penetration testing methodology extends these principles to Web2 and Web3 environments to ensure consistency, repeatability, and verifiable outcomes.