cncf / cncf-fuzzing

✨🔐 CNCF Fuzzers
https://cncf.io/projects
Apache License 2.0
111 stars 41 forks source link

Keycloak: Add SamlConfigParserFuzzer #478

Closed arthurscchan closed 3 months ago

arthurscchan commented 3 months ago

This PR add a fuzzer targeting parsing method of Saml Config related parser classes.

arthurscchan commented 3 months ago

Sample output

#2      pulse  ft: 322 exec/s: 0 rss: 1370Mb                                                                                                                                                                      
#2      INITED cov: 322 ft: 322 corp: 1/1b exec/s: 0 rss: 1370Mb                                                                                                                                                  
INFO: Instrumented org.keycloak.adapters.saml.config.parsers.RoleMappingParser (took 6 ms, size +5%)                                                                                                              
#3      NEW    cov: 326 ft: 326 corp: 2/2b lim: 4 exec/s: 1 rss: 1370Mb L: 1/1 MS: 2 ChangeBit-Custom-                                                                                                            
#4      pulse  cov: 326 ft: 326 corp: 2/2b lim: 4 exec/s: 1 rss: 1370Mb                                                                                                                                           
#8      pulse  cov: 326 ft: 328 corp: 2/2b lim: 4 exec/s: 2 rss: 1370Mb                                                                                                                                           
#8      NEW    cov: 328 ft: 328 corp: 3/3b lim: 4 exec/s: 2 rss: 1370Mb L: 1/1 MS: 10 ChangeBit-Custom-ShuffleBytes-Custom-CrossOver-Custom-ChangeBit-Custom-ChangeByte-Custom-                                   
#13     NEW    cov: 350 ft: 352 corp: 4/6b lim: 4 exec/s: 4 rss: 1370Mb L: 3/3 MS: 10 CopyPart-Custom-ShuffleBytes-Custom-ChangeByte-Custom-ChangeByte-Custom-InsertByte-Custom-                                  
INFO: Instrumented org.keycloak.adapters.saml.config.parsers.KeyStoreParser (took 7 ms, size +6%)                                                                                                                 
#14     NEW    cov: 362 ft: 364 corp: 5/7b lim: 4 exec/s: 4 rss: 1370Mb L: 1/3 MS: 2 ChangeBit-Custom-                                                                                                            
INFO: Instrumented org.keycloak.adapters.saml.config.parsers.IdpParser (took 9 ms, size +4%)
...
#39712  NEW    cov: 1353 ft: 1875 corp: 328/4114b lim: 38 exec/s: 4412 rss: 1379Mb L: 32/38 MS: 8 ChangeBit-Custom-PersAutoDict-Custom-ShuffleBytes-Custom-CopyPart-Custom- DE: "\000<"-
#39793  REDUCE cov: 1353 ft: 1875 corp: 328/4106b lim: 38 exec/s: 4421 rss: 1379Mb L: 28/38 MS: 2 EraseBytes-Custom-                                                                                              
#39819  NEW    cov: 1353 ft: 1876 corp: 329/4127b lim: 38 exec/s: 4424 rss: 1379Mb L: 21/38 MS: 2 ChangeBit-Custom-                                                                                               
#39911  NEW    cov: 1353 ft: 1879 corp: 330/4147b lim: 38 exec/s: 4434 rss: 1379Mb L: 20/38 MS: 4 CopyPart-Custom-EraseBytes-Custom-                              
#40182  REDUCE cov: 1354 ft: 1880 corp: 331/4167b lim: 38 exec/s: 4464 rss: 1379Mb L: 20/38 MS: 2 CopyPart-Custom-                                                                                  
#40193  REDUCE cov: 1354 ft: 1880 corp: 331/4165b lim: 38 exec/s: 4465 rss: 1379Mb L: 8/38 MS: 2 EraseBytes-Custom-                                                                                
#40232  REDUCE cov: 1354 ft: 1880 corp: 331/4162b lim: 38 exec/s: 4470 rss: 1379Mb L: 8/38 MS: 8 ChangeBinInt-Custom-CMP-Custom-ChangeByte-Custom-EraseBytes-Custom- DE: "\236\017"-              
#40629  NEW    cov: 1354 ft: 1883 corp: 332/4192b lim: 38 exec/s: 4514 rss: 1379Mb L: 30/38 MS: 4 ChangeBit-Custom-CopyPart-Custom-                                                   
#40700  REDUCE cov: 1354 ft: 1884 corp: 333/4213b lim: 38 exec/s: 4522 rss: 1379Mb L: 21/38 MS: 2 CrossOver-Custom-                                                                                
#40702  NEW    cov: 1354 ft: 1895 corp: 334/4251b lim: 38 exec/s: 4522 rss: 1379Mb L: 38/38 MS: 4 CrossOver-Custom-ChangeByte-Custom-                                                                 
#40756  REDUCE cov: 1354 ft: 1896 corp: 335/4269b lim: 38 exec/s: 4528 rss: 1379Mb L: 18/38 MS: 8 ChangeBinInt-Custom-CopyPart-Custom-CopyPart-Custom-CopyPart-Custom-   
#40824  NEW    cov: 1354 ft: 1897 corp: 336/4307b lim: 38 exec/s: 4536 rss: 1379Mb L: 38/38 MS: 6 InsertRepeatedBytes-Custom-CopyPart-Custom-CrossOver-Custom-                                                    
#40926  NEW    cov: 1354 ft: 1898 corp: 337/4343b lim: 38 exec/s: 4547 rss: 1379Mb L: 36/38 MS: 4 CopyPart-Custom-InsertRepeatedBytes-Custom-