Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook/winterfell: The attacker is allowed to control the security parameters and sets it to a few bits #9

Open
cryptosubtlety opened this issue Mar 13, 2023 · 2 comments

Comments

@cryptosubtlety
Copy link

facebook/winterfell#160

@cryptosubtlety cryptosubtlety changed the title The attacker is allowed to control the ZKP's security parameters and sets it to a few bits Facebook/winterfell: The attacker is allowed to control the security parameters and sets it to a few bits Mar 13, 2023
@cryptosubtlety
Copy link
Author

A more detailed write-up with partial PoC attack is described at Google security research in github GHSA-8fhq-pf83-pv93

@irakliyk
Copy link

This issue has been closed by facebook/winterfell#160 and the fix is based on what is described in facebook/winterfell#160 (comment). Basically, now when instantiating the verifier, the user must specify which parameters are acceptable (via the AcceptableOptions below):

pub fn verify<AIR, HashFn, RandCoin, VC>(
    proof: Proof,
    pub_inputs: AIR::PublicInputs,
    acceptable_options: &AcceptableOptions,
) -> Result<(), VerifierError>

// Specifies either the minimal, conjectured or proven, security level or a set of
// `ProofOptions` that are acceptable by the verification procedure.
pub enum AcceptableOptions {
    /// Minimal acceptable conjectured security level
    MinConjecturedSecurity(u32),
    /// Minimal acceptable proven security level
    MinProvenSecurity(u32),
    /// Set of acceptable proof parameters
    OptionSet(Vec<ProofOptions>),
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants