8000 🛡️ Inaccurate Compressed Size Tracking on Object Deletion in Objectarium · Issue #559 · axone-protocol/contracts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
🛡️ Inaccurate Compressed Size Tracking on Object Deletion in Objectarium #559
Closed
@ccamel

Description

@ccamel

Note

Severity: Low
target: v5.0.0 - Commit: cde785fbd2dad71608d53f8524e0ef8c8f8178af
Ref: OKP4 CosmWasm Audit Report v1.0 - 02-05-2024 - BlockApex

Description

In the Objectarium contract, there is a discrepancy in how compressed sizes are handled during the lifecycle of an object. While the store_object function correctly increments the compressed_size statistic upon storing an object, the corresponding decrement operation is missing in the forget_object function when an object is removed. This oversight leads to inaccurate tracking of the compressed data size within the system.

Recommendation

To resolve this issue, update the forget_object function to include a decrement operation for the compressed_size stat similar to how it handles other metrics.

Metadata

Metadata

Assignees

Labels

security auditCategorizes an issue or PR as relevant to Security Audit

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0