# mistymntncop/cve-2024-7971 architecture

> Architecture diagram of the GitHub repository mistymntncop/cve-2024-7971, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mistymntncop/cve-2024-7971
- Repository: https://github.com/mistymntncop/cve-2024-7971

## Overview

This repository is a proof of concept for CVE-2024-7971, not a standalone exploit or service. The main workflow is to run the modified PoC under V8’s d8 shell: it loads the Wasm builder, constructs and instantiates a module, then calls its exported function to exercise the vulnerable loop-branch parameter handling and invoke an imported JavaScript callback. `poc-original.js` preserves a related regression-test variant. The README is brief; the modified PoC’s callback and final output details are only partially sampled.

Main entry points: [`poc.js`](https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.js) (Modified PoC), [`wasm-module-builder.js`](https://github.com/mistymntncop/cve-2024-7971/blob/main/wasm-module-builder.js) (Wasm builder), [`poc-original.js`](https://github.com/mistymntncop/cve-2024-7971/blob/main/poc-original.js) (Original PoC)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_poc["PoC execution"]
  node_modified["Modified PoC<br/>[poc.js]"]
  node_callback["Imported JS callback<br/>[poc.js]"]
end

subgraph group_wasm["Wasm construction"]
  node_builder["Wasm builder"]
  node_module["Generated Wasm module<br/>[poc.js]"]
end

subgraph group_reference["Reference variant"]
  node_original["Original PoC<br/>[poc-original.js]"]
  node_wat["WAT artifact<br/>[poc.wat]"]
end

node_operator(("PoC runner"))
node_d8["V8 d8 shell"]

node_operator -->|"runs PoC"| node_d8
node_d8 -->|"executes"| node_modified
node_modified -->|"loads builder"| node_builder
node_modified -->|"instantiates via"| node_builder
node_builder -->|"serializes module"| node_module
node_modified -->|"calls export"| node_module
node_module -->|"calls import"| node_callback
node_operator -.->|"can run"| node_original

click node_modified "https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.js"
click node_builder "https://github.com/mistymntncop/cve-2024-7971/blob/main/wasm-module-builder.js"
click node_module "https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.js"
click node_callback "https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.js"
click node_original "https://github.com/mistymntncop/cve-2024-7971/blob/main/poc-original.js"
click node_wat "https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.wat"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_modified,node_callback toneBlue
class node_builder,node_module toneAmber
class node_original,node_wat toneMint
class node_operator,node_d8 toneIndigo
```

## Components

### PoC execution

- [Modified PoC](https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.js): `poc.js`
- [Imported JS callback](https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.js): `poc.js`

### Wasm construction

- [Wasm builder](https://github.com/mistymntncop/cve-2024-7971/blob/main/wasm-module-builder.js): `wasm-module-builder.js`
- [Generated Wasm module](https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.js): `poc.js`

### Reference variant

- [Original PoC](https://github.com/mistymntncop/cve-2024-7971/blob/main/poc-original.js): `poc-original.js`
- [WAT artifact](https://github.com/mistymntncop/cve-2024-7971/blob/main/poc.wat): `poc.wat`

### Other components

- **PoC runner**
- **V8 d8 shell**

## Connections

- PoC runner → V8 d8 shell: runs PoC
- V8 d8 shell → Modified PoC: executes
- Modified PoC → Wasm builder: loads builder
- Modified PoC → Wasm builder: instantiates via
- Wasm builder → Generated Wasm module: serializes module
- Modified PoC → Generated Wasm module: calls export
- Generated Wasm module → Imported JS callback: calls import
- PoC runner → Original PoC: can run
