- All findings
- 4
- Critical
- 0
- High
- 0
- Medium
- 1
- Low
- 1
- Informational
- 2
Date of engagement: 12th February 2025 - 5th March 2025
About Us
Guvenkaya is a security research firm specializing in Rust security, Web3 security of Non-EVM protocols, and Web2 security. With our expertise, we provide both security auditing services and custom security solutions
About Aurora
Aurora is a Virtual Chain built on NEAR. It’s, at the same time, the sandbox and the proof of the robustness of the parent protocol. It’s a smart contract - probably the most complex that exists - that is also an Ethereum Virtual Machine, providing a turn-key solution for developers to operate their apps on an Ethereum-compatible, high-throughput, scalable and future-safe platform, with low transaction costs.
Audit Results
Guvenkaya conducted a security assessment of the NEAR Intents from 12th February 2025 to 5th March 2025. NEAR Intents are a new type of transaction that allow information, requests, assets, and actions to be exchanged between AI agents, services, and end users. During this engagement, a total of 4 findings were reported. 1 of the findings was medium and the remaining were either low or informational severity. The Aurora team has not fixed the issues yet.
Project Scope
Out of Scope
The audit will include reviewing the code for security vulnerabilities. The audit does not include a review of the tests and dependencies.
Timeline
- Start of the audit
12th February 2025
- Draft report
5th March 2025
Methodology
- RESEARCH INTO PROJECT ARCHITECTURE
- PREPARING ATTACK VECTORS
- SETTING UP AN ENVIRONMENT
- MANUAL CODE REVIEW OF THE CODE
- ASSESSMENT OF RUST SECURITY ISSUES
- ASSESSMENT OF NEAR SECURITY ISSUES
- ASSESSMENT OF ARITHMETIC ISSUES
- BUSINESS LOGIC VULNERABILITY ASSESSMENT
- ONCHAIN TESTING USING NEAR WORKSPACES
- BEST PRACTICES AND CODE QUALITY
- CHECKING FOR CODE REFACTORING/SIMPLIFICATION POSSIBILITIES
- ARCHITECTURE IMPROVEMENT SUGGESTIONS
- PREPARING POCS AND/OR TESTS FOR EACH CRITICAL/HIGH/MEDIUM ISSUES
Severity Breakdown
Findings Summary
| Finding | Impact | Likelihood | Severity | Remediation complexity | Remediation status |
|---|---|---|---|---|---|
| GUV-1: Potential Funds Stealing From Users Via Repeating Failed Intents | Severe | Rare | Medium | Simple | Scheduled |
| GUV-2: Possible DoS Of Public Keys Viewing Per User | Negligible | Possible | Low | Simple | Not Fixed |
| GUV-3: Arbitrary Public Key Setting In Privileged Functions | Negligible | Rare | Informational | Simple | Not Fixed |
| GUV-4: Missing Event Emission For Critical Access Control Operations | Negligible | Rare | Informational | Simple | Not Fixed |
Findings Details
GUV-1: Potential Funds Stealing From Users Via Repeating Failed Intents
MediumDepending on the intent structure, it's possible to maliciously fail a transaction and then repeat specific intents, which could lead to:
Stealing tokens Making solvers lose money or perform unauthorized operations
Mainnet deadlines are permissive, ranging from 20 seconds to 10 minutes. This provides ample time to fail a transaction and repeat failed intents. A transaction can be failed by:
Invalidating the nonce after signing in a separate transaction. Adding an additional intent to your intent array that transfers funds out and fails your token diff
Malicious actor can:
Repeat selected intents. Repeat selected intents and, to maintain TokenDiff balance, resign your controlled intents with new values. Observe failed intents on the blockchain and reconstruct them like building blocks (while deadlines remain valid).
The risk is low when TokenDiff intent is used, as mainnet calculations are typically precise, making it difficult to modify the intent structure while maintaining zero delta and gaining benefits. The vulnerability is particularly dangerous in P2P transfer scenarios where TokenDiff intent isn't used, allowing for immediate exploitation with high success rates.
Impact:
Funds can be stolen in scenarios where TokenDiff intent isn't used.
Recommendation
This behavior should be documented to emphasize that TokenDiff is the preferred method, while Transfer should be discouraged for facilitating swaps. Users must understand they are responsible for reviewing and approving what they sign.
Remediation - Scheduled
The Aurora team has acknowledged the issue and will fix it soon by documenting this scenario.
GUV-2: Possible DoS Of Public Keys Viewing Per User
LowIt was observed that since user can have unlimited public keys, it is possible for a malicious user to cause a DoS of public_keys_of method when their account is used. That’s because public_keys_of iterates over public keys of a provided account and if account has a lot of public keys it can lead to the error due to a gas limit.
defuse/src/contract/accounts/mod.rs
fn public_keys_of(&self, account_id: &AccountId) -> HashSet<PublicKey> {
self.accounts.get(account_id).map_or_else(
|| {
PublicKey::from_implicit_account_id(account_id)
.into_iter()
.collect()
},
|account| account.iter_public_keys(account_id).collect(),
)
}Impact:
Errors in off-chain components, which utilize public_keys_ofmethod. If iter_public_keys is utilized within the smart contract logic somewhere else, depending on a logic it can lead to the DoS on protocol level
Recommendation
It is recommended to limit the number of public keys each account can have
Remediation - Not Fixed
The Aurora team has not fixed the issue yet.
GUV-3: Arbitrary Public Key Setting In Privileged Functions
InformationalThe codebase accepts public keys in multiple locations without proper validation. The NEAR SDK's PublicKey type lacks comprehensive validation of public key formats and values. Malicious users could potentially inject invalid or malformed public keys, leading to undefined behavior in cryptographic operations.
PoC:
poc
fn test_parse_zero_pubkey() {
use near_sdk::PublicKey;
let zero_pubkey_str = "ed25519:11111111111111111111111111111111";
let result = zero_pubkey_str.parse::<PublicKey>();
assert!(result.is_err());
}Impact:
Potential undefined behavior in cryptographic operations Potential injection of weak public keys that can lead to signature malleability
Recommendation
Implement comprehensive validation for public keys in all relevant functions.
Account Public Key Management (add_public_key, remove_public_key) Relayer Keys Management (do_add_relayer_key, delete_relayer_key) Full Access Keys Management (add_full_access_key, delete_key)
Remediation - Not Fixed
The Aurora team has not fixed the issue yet.
GUV-4: Missing Event Emission For Critical Access Control Operations
InformationalThe relayer keys operations lacks event emissions for access control operations in delete_relayer_key() and do_add_relayer_key() methods. This omission makes it difficult to track and audit changes to the relayer key set off-chain. Events are essential for maintaining transparency and allowing external systems to monitor and react to important state changes in the contract.
Recommendation
Implement event emissions for both adding and removing relayer keys
Remediation - Not Fixed
The Aurora team has not fixed the issue yet.
Source: published GitHub report · 22 pages. The original PDF includes the source formatting, figures, and linked references.

