Spike: fuzz the input parsers with ClusterFuzzLite

Open
#401 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, python

Research direction

Start with the parser entry points named in the issue: apps/matches/submission_format.py and apps.public_ids.codes.normalize; check whether they can run without Django settings, then try one target locally with ClusterFuzzLite. Read the ClusterFuzzLite Python base image and config/tests/test_supply_chain.py to assess Python compatibility and workflow requirements. Done means answering the spike questions in an issue comment and creating a follow-up task issue or closing this as not planned with a reason.

Written by the indexing model from the issue text.

Description

area:security priority:p2 size:M type:spike

Epic: #397

Problem: Scorecard's Fuzzing check is 0. For Python, Scorecard only detects fuzzing through OSS-Fuzz membership or a ClusterFuzzLite setup in the repository (.clusterfuzzlite/); it does not detect Hypothesis or other property tests in Python. OPEN parses untrusted input from partners and organizers: the open submission format (apps/matches/submission_format.py), CSV results uploads (docs/csv-format.md), OPEN Code normalization (apps.public_ids.codes.normalize), and Account email normalization. Crashes or slow paths there are real risks, not just a score.

Questions for the spike:

  • Does Atheris (the Python fuzzer ClusterFuzzLite uses) run on Python 3.13 in ClusterFuzzLite's Python base image? If not, which targets can run on the image's Python without 3.13-only code?
  • Which parsers can be fuzzed as pure functions, without Django settings or a database? Which need django.setup() with made-up settings?
  • How long should the pull request run be (ClusterFuzzLite's code-change mode) to stay under CI's time budget, and should a longer batch run go on a schedule?
  • Does the workflow fit the supply chain rules (actions pinned to SHAs, read-only top-level permissions:, uv sync --locked) and config/tests/test_supply_chain.py?

Scope:

  • Try one fuzz target (OPEN Code normalization or the submission format parser) under ClusterFuzzLite locally
  • Write up the answers above in this issue, with a recommendation: adopt, adopt for a subset, or close as not planned
  • If adopted, open a task issue for .clusterfuzzlite/ (Dockerfile, build.sh, project.yaml), the targets, and a workflow on pull requests and weekly

Acceptance criteria:

  • The questions above are answered in a comment here
  • A follow-up task issue exists, or this is closed as not planned with the reason

Out of scope:

  • Applying to OSS-Fuzz
  • Fuzzing the rating engine (belongs in the engine repository)

Size: M

Dominant language
Python
Stars
0
Forks
1
Avg merge
1h 7m
Merged PRs (30d)
206

Getting set up

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.

More from openpickleball/backend

All issues in openpickleball/backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.