Skip to content

sector-steel: unvalidated productionRoute falls through to the most permissive CO2e threshold #32

Description

@LKSNDRTMLKV

Static read-through audit of plugins/sector-steel. Same pattern as sector-aluminium (both plugins share this gap independently). One verified finding.

1. Fail-open on the plugin's core compliance gate

Location: src/lib.rs:68-73
Issue: validate_input (line 58) uses require_str("productionRoute") instead of an enum/allow-list check, so any string ("Electric-Arc", "electric_arc", "unknown") passes. The wildcard threshold (2.5 tCO2e/tonne) is higher than all three real thresholds (2.1/1.0/0.4) — the most lenient, not the "conservative default" the inline comment claims.
Failure scenario: A blast-furnace facility emitting 2.3 tCO2e/tonne (non-compliant under the real 2.1 threshold) submitted with a wrong-case or unrecognized route string is scored Compliant against the 2.5 wildcard threshold — a fail-open compliance-determination bug in a CBAM/ESPR calculator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomplianceRegulatory/compliance correctness issue

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions