Prepared by:
HALBORN
Last Updated 04/26/2024
Date of Engagement by: September 26th, 2022 - October 22nd, 2022
No Reported Findings to Address
All findings
0
Critical
0
High
0
Medium
0
Low
0
Informational
0
Playground Labs
engaged Halborn to conduct a security audit on their browser extension, beginning on 2022-09-26 and ending on 2022-10-22. The security assessment was scoped to the Kapital DAO Guild Service browser extension. To begin the test, the Client’s team provided the source code for Halborn to conduct security testing using tools to scan, detect, validate possible vulnerabilities found in the extension and report the findings at the end of the engagement.
The Kapital DAO Guild Service browser extension is a pass-through for the game the user is playing to connect to the backend API. It allows users to authenticate using their Discord credentials and store their JWT on disk, manage their scholarships, forward blockchain requests to the API.
The team at Halborn was provided approximately three weeks for the engagement and assigned a full-time security engineer to audit the security of the application. The security engineer is a blockchain and smart-contract security expert with advanced penetration testing, smart-contract hacking, and deep knowledge of multiple blockchain protocols.
The goals of our security audits are to improve the quality of the systems reviewed and to target sufficient remediation to help protect users.
In summary, Halborn identified some security risks that should be addressed by the Playground Labs team
.
In more detail, some care should be taken when verifying the origin of Message Events to the extension's Content Script, as to not allow rogue websites to logout or confirm signatures/transactions of the user.
Moreover, it was discovered that the application's API (dev-api.kapital.gg
) return custom errors so it discloses technologies used to the end user.
Lastly, it was discovered that the dependencies are not pinned to exact versions and that the CSP of the extension is not as restrictive as it could. Some discoveries were also made that the extension does not check for synthetically generated events, but as there are no attack vectors available currently it was marked as INFORMATIONAL.
To remediate the identified security issues, it is recommended that Playground Labs
implements the following high-level remediation actions:
Validate each message's origin before processing the message.
Return custom error from the application's API as to not disclose the technologies on which the application relies.
Pin dependencies to exact versions.
Make the Content Security Policy as strict as possible.
Halborn performed a combination of manual and automated security testing to balance efficiency, timeliness, practicality, and accuracy regarding the scope of the penetration test. While manual testing is recommended to uncover flaws in logic, process and implementation; automated testing techniques assist enhance coverage of the solution and can quickly identify flaws in it.
The following phases and associated tools were used throughout the term of the audit:
Storing assets securely
Exposure of any critical information during user interactions with the blockchain and external libraries
Any attack that impacts funds, such as draining or manipulating of funds
Application Logic Flaws
Areas where insufficient validation allows for hostile input
Application of cryptography to protect secrets
Input Handling
Fuzzing of all input parameters
Web extension misconfiguration
Technology stack-specific vulnerabilities and Code Audit
Known vulnerabilities in 3rd party / OSS dependencies.
The security assessment was scoped to the following components:
Kapital Guild Service Extension
:
PlaygroundLabs / kap-scholar-extension
Git commit ID: c5c6e52787e580528a6875e58092081ea2e980e7
Git commit ID: c5c6e52787e580528a6875e58092081ea2e980e7
EXPLOITABILIY METRIC () | METRIC VALUE | NUMERICAL VALUE |
---|---|---|
Attack Origin (AO) | Arbitrary (AO:A) Specific (AO:S) | 1 0.2 |
Attack Cost (AC) | Low (AC:L) Medium (AC:M) High (AC:H) | 1 0.67 0.33 |
Attack Complexity (AX) | Low (AX:L) Medium (AX:M) High (AX:H) | 1 0.67 0.33 |
IMPACT METRIC () | METRIC VALUE | NUMERICAL VALUE |
---|---|---|
Confidentiality (C) | None (I:N) Low (I:L) Medium (I:M) High (I:H) Critical (I:C) | 0 0.25 0.5 0.75 1 |
Integrity (I) | None (I:N) Low (I:L) Medium (I:M) High (I:H) Critical (I:C) | 0 0.25 0.5 0.75 1 |
Availability (A) | None (A:N) Low (A:L) Medium (A:M) High (A:H) Critical (A:C) | 0 0.25 0.5 0.75 1 |
Deposit (D) | None (D:N) Low (D:L) Medium (D:M) High (D:H) Critical (D:C) | 0 0.25 0.5 0.75 1 |
Yield (Y) | None (Y:N) Low (Y:L) Medium (Y:M) High (Y:H) Critical (Y:C) | 0 0.25 0.5 0.75 1 |
SEVERITY COEFFICIENT () | COEFFICIENT VALUE | NUMERICAL VALUE |
---|---|---|
Reversibility () | None (R:N) Partial (R:P) Full (R:F) | 1 0.5 0.25 |
Scope () | Changed (S:C) Unchanged (S:U) | 1.25 1 |
Severity | Score Value Range |
---|---|
Critical | 9 - 10 |
High | 7 - 8.9 |
Medium | 4.5 - 6.9 |
Low | 2 - 4.4 |
Informational | 0 - 1.9 |
Critical
0
High
0
Medium
0
Low
0
Informational
0
Security analysis | Risk level | Remediation Date |
---|
Halborn strongly recommends conducting a follow-up assessment of the project either within six months or immediately following any material changes to the codebase, whichever comes first. This approach is crucial for maintaining the project’s integrity and addressing potential vulnerabilities introduced by code modifications.
// Download the full report
* Use Google Chrome for best results
** Check "Background Graphics" in the print settings if needed