Files
systemd/test/fuzz/fuzz-user-record/auth-fido2.json
Frantisek Sumsal be0db50cad fuzz: add a fuzzer for user records
Add a simple fuzzer that verifies our machinery for parsing user records
from JSON works as intended.

The initial corpus was created with the help of Claude, so we have a
bunch of valid user records with as much fields as possible for the
initial corpus.
2026-03-06 19:03:14 +01:00

41 lines
1.2 KiB
JSON

{
"userName": "fido2user",
"realName": "FIDO2 Security Key User",
"uid": 2002,
"gid": 2002,
"homeDirectory": "/home/fido2user",
"shell": "/bin/bash",
"disposition": "regular",
"storage": "luks",
"imagePath": "/home/fido2user.home",
"fido2HmacCredential": [
"AQIDBAUAAQ==",
"BQYHCAkKCw=="
],
"privileged": {
"fido2HmacSalt": [
{
"credential": "AQIDBAUAAQ==",
"salt": "Zmlyc3RzYWx0Zm9yZmlkbzJ0ZXN0aW5n",
"hashedPassword": "$6$fido2salt1$hashedpasswordforfido2credential1",
"up": true,
"uv": false,
"clientPin": false
},
{
"credential": "BQYHCAkKCw==",
"salt": "c2Vjb25kc2FsdGZvcmZpZG8ydGVzdA==",
"hashedPassword": "$6$fido2salt2$hashedpasswordforfido2credential2",
"up": true,
"uv": true,
"clientPin": true
}
]
},
"secret": {
"tokenPin": ["1234"],
"fido2UserPresencePermitted": true,
"fido2UserVerificationPermitted": true
}
}