Skip to content

Commit

Permalink
More related links to EthTrust Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
chaals committed Jul 29, 2024
1 parent 7a711f2 commit a2a0052
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion entries/docs/SWC-126.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ Insufficient Gas Griefing

## Relationships

[CWE-691: Insufficient Control Flow Management](https://cwe.mitre.org/data/definitions/691.html)
- [CWE-691: Insufficient Control Flow Management](https://cwe.mitre.org/data/definitions/691.html)
- EEA EthTrust Security Levels:
- [**[Q] Manage Gas Usage Increases**](https://entethalliance.github.io/eta-registry/security-levels-spec.html#req-3-enough-gas)
- [**[Q] Protect Gas Usage**](https://entethalliance.github.io/eta-registry/security-levels-spec.html#req-3-protect-gas)

## Description

Expand Down
5 changes: 4 additions & 1 deletion entries/docs/SWC-127.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ Arbitrary Jump with Function Type Variable

## Relationships

[CWE-695: Use of Low-Level Functionality](https://cwe.mitre.org/data/definitions/695.html)
- [CWE-695: Use of Low-Level Functionality](https://cwe.mitre.org/data/definitions/695.html)
- EEA EthTrust Security Levels:
- [**[S] No `assembly {}`**](https://entethalliance.github.io/eta-registry/security-levels-spec.html#req-1-no-assembly)
- [**[M] Avoid Common `assembly {}` Attack Vectors**](https://entethalliance.github.io/eta-registry/security-levels-spec.html#req-2-safe-assembly)

## Description

Expand Down
6 changes: 4 additions & 2 deletions entries/docs/SWC-128.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ DoS With Block Gas Limit

## Relationships

[CWE-400: Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html)

- [CWE-400: Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html)
- EEA EthTrust Security Levels:
- [**[Q] Manage Gas Usage Increases**](https://entethalliance.github.io/eta-registry/security-levels-spec.html#req-3-enough-gas)

## Description

When smart contracts are deployed or functions inside them are called, the execution of these actions always requires a certain amount of gas, based of how much computation is needed to complete them. The Ethereum network specifies a block gas limit and the sum of all transactions included in a block can not exceed the threshold.
Expand Down

0 comments on commit a2a0052

Please sign in to comment.