MozillaSecurity / MozillaSecurity/cryptofuzz

Serialization mismatches break DSA_PrivateToPublic and KDF_SRTP/SRTCP structured inputs

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29
Forks
18
Avg merge
4m
Merged PRs (30d)
1

Description

DSA_PrivateToPublic::Serialize only writes priv, but the generator emits p/g/priv and the wolfCrypt module expects p/g. Structured mutator also parses p/g/priv, so the fields get lost and the module receives empty/invalid p/g.
KDF_SRTP/KDF_SRTCP::Serialize do not write index, yet the generator fills it and the wolfCrypt implementations consume it. Structured mutator previously read the field, but it’s missing in the payload, causing misalignment and fallback to byte-level mutation.
Impact:

Structured mutations for these operations mostly fail or degrade to byte-level mutation.
Backends cannot use full parameters; coverage drops and OutOfData may occur.
Suggested fixes:

In DSA_PrivateToPublic::Serialize, serialize g, p, and priv in the same order as the generator/mutator.
In KDF_SRTP and KDF_SRTCP::Serialize, serialize index along with key/salt/kdr/key1-3Size.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate DSA_PrivateToPublic::Serialize and the KDF_SRTP/KDF_SRTCP Serialize methods, then compare their field order with the generator and structured mutator paths described in the issue. Confirm that g, p, priv, and index survive structured serialization and that the affected operations no longer receive empty parameters or fall back to byte-level mutation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cryptography, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.