# Fixed: Cadence Vulnerabilities 2023-09-16

**URL:** <https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237>\
**Category:** Security Notifications\
**Created:** [September 28, 2023, 12:27pm UTC](https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237 "2023-09-28T12:27:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/jan/32/672_2.png) [@Jan](https://forum.flow.com/u/Jan)\
**Post date:** [September 28, 2023, 12:27pm UTC](https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237/1 "2023-09-28T12:27:11Z")

</div>

## Issue Overview

- Current Status: Issue Fixed
- Affected Network: Testnet, Mainnet

## Summary of Impact

An attacker may gain unauthorized access to more functionality than granted:  
An attacker can borrow a private capability, even when it was not shared with them.

## Technical Summary of Issues

- Values sent as arguments to transactions and scripts are checked for their _importability_: Some values may not be imported.  
For example, public capability values can be imported, while private capability values cannot be imported.
- Importability should be checked on the _value_ level.  
For example, the `Capability` type on its own is importable, but a concrete capability value’s importability depends on its path.
- **BUG:** A composite value (struct, resource, etc.) was determined to be importable if the type is importable. For example, a resource is not importable, but a struct is.  
However, the importability check did not properly validate the _composite value’s field values_
- Other containers, like arrays, dictionaries, and optional values, already determined importability by ensuring all child elements are importable

## Mitigation

The security reports were immediately acknowledged and reproduced. Fixes were developed and deployed to all networks. Added check of importability of composite field values, not just type.

## Recognition

As core contributors to the Flow ecosystem, we take reported issues very seriously and would like to thank Austin from [flowty.io](http://flowty.io) team for reporting the issues responsibly through our [Responsible Disclosure Policy](https://flow.com/flow-responsible-disclosure).

---

<div class="post-metadata">

**Author:** ![bjartek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bjartek/32/143_2.png) [@bjartek](https://forum.flow.com/u/bjartek)\
**Post date:** [September 28, 2023, 4:48pm UTC](https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237/2 "2023-09-28T16:48:58Z")

</div>

Good find @austin

---

<div class="post-metadata">

**Author:** ![frlabs](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/frlabs/32/912_2.png) [@frlabs](https://forum.flow.com/u/frlabs)\
**Post date:** [September 28, 2023, 4:52pm UTC](https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237/3 "2023-09-28T16:52:31Z")

</div>

Awesome find @austin 🧙

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [September 28, 2023, 7:20pm UTC](https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237/4 "2023-09-28T19:20:42Z")

</div>

great work @austin

---

<div class="post-metadata">

**Author:** ![gregsantos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/gregsantos/32/427_2.png) [@gregsantos](https://forum.flow.com/u/gregsantos)\
**Post date:** [October 1, 2023, 10:29pm UTC](https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237/5 "2023-10-01T22:29:54Z")

</div>

Thank you @austin and team

---

<div class="post-metadata">

**Author:** ![luca](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/luca/32/321_2.png) [@luca](https://forum.flow.com/u/luca)\
**Post date:** [October 3, 2023, 12:04am UTC](https://forum.flow.com/t/fixed-cadence-vulnerabilities-2023-09-16/5237/6 "2023-10-03T00:04:03Z")

</div>

Congrats on the great find @austin !!!
