ippfuzz: Fuzz test generator for ipptool
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 18/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- c
- Ambito
- cli, testing-qa
Direzione di ricerca
Inizia esaminando ipptool e la issue copiata di ippsample per individuare i formati esistenti dei file di test e dei risultati. Confronta i requisiti proposti per generatore, espansione dei template, automazione, limiti di errore e archiviazione dei risultati con gli strumenti di fuzzing disponibili. Il lavoro è completo quando esistono un ambito concordato e un workflow ippfuzz funzionante che genera test, esegue ipptool, archivia gli artefatti dei passaggi e degli errori e riepiloga i risultati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Copied from ippsample issue 72
As part of our discussions during the February 2018 IPP F2F meeting, we discussed ways to introduce fuzz-testing into ipptool.
Two approaches were considered:
- Adding support to ipptool to randomly generate requests, attributes, values, etc.
- Adding a program to generate random ipptool test files that can be fed into ipptool.
Since the first approach would still require ipptool to be able to write out a failed test for later diagnosis (what the second approach will do as its primary function), it seems like creating a test file generator is the simpler approach.
The generator should provide options to limit the amount of randomness, for example "always use Get-Printer-Attributes", "always include the following attributes and values", etc. so that "mostly valid" requests can be generated to test specific areas.
The generator should also provide options for the expected responses, for example "expect the following status codes" or "expect the random attributes to be in the unsupported attributes group of the response."
Ideally ippfuzz should be able to automate running ipptool and iterate N times, storing the results in a directory and providing a summary of the test results on stdout.
Also, when automating the tool should stop after a certain number of repeated failures (default 3?) - at that point the Printer has probably crashed...
When writing the results to a test directory, rename tests and results, e.g. "pass-nnnnnnnn.ext" for passed tests and "fail-nnnnnnnn.ext" for failed tests? Be sure to include the .test file and the XML results plist file.
Maybe focus on supporting fuzzing templates which look like ipptool test files? Expand values like:
- "$[ascii(100)]": Random string of exactly 100 characters
- "$[ascii(0,32767)]": Random string of 0 to 32767 characters
- "$[utf8(1000)]": Random Unicode string of 1000 characters
- "$[bytes(10,5000)]": 10 to 5000 random bytes
- "$[integer(10,20)]": Random integer from 10 to 20
- "$[boolean]": Random boolean value
- "$[value1|value2|value3]": randomly choose between the three values
- "$[repeat(10000) ... ]": expand the "..." text 10000 times.
"$[...]" might not be the best choice, consider other markup options.
Need to see what other fuzzing tools do.
Resources:
- Lingua principale
- C
- Stelle
- 81
- Fork
- 48
- Merge medio
- 23h 58m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenPrinting/libcups
-
enhancement priority-high security
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OpenPrinting/libcups#163 ·
-
enhancement priority-high security
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
OpenPrinting/libcups#162 ·
-
enhancement priority-medium
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OpenPrinting/libcups#121 ·
-
enhancement priority-medium
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
OpenPrinting/libcups#120 ·
-
enhancement platform issue
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
OpenPrinting/libcups#109 ·
Tutte le issue di OpenPrinting/libcups
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
duckdb/duckdb-wasm#2258 ·
-
how does install.sh work Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
rofl0r/microsocks#110 ·
-
OTA is not aborted correctly Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
espressif/esp-aws-iot#261 ·
-
os:linux
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
mpv-player/mpv#18510 · 2 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100