Skip to content

Output Assignment Uses <-- Without Constraints, Allowing Malicious Proof Generation #3

@Koukyosyumei

Description

@Koukyosyumei

In zkPhoto.circom, the output is assigned using the <-- operator, which does not enforce any constraints. As a result, a malicious prover can generate a fake proof with incorrect outputs, compromising the integrity of the circuit.

out[idx] <--

Without explicit constraints enforcing the expected behavior of the shift operation, the circuit becomes vulnerable to manipulation. A prover could arbitrarily choose an output without satisfying any underlying computation.

To properly implement the shift operation with sufficient constraints, consider referencing established implementations for similar functionalities, such as:

Would appreciate any thoughts or confirmation on this fix!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions