Fuzz introspector: fuzz_jwt_roundtrip
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
131 186 google.auth.jwt.decode call site: {node_id} google.auth.jwt.encode
78 86 google.auth.exceptions.GoogleAuthError.__init__ call site: {node_id} google.auth.jwt.encode
46 38 google.auth.jwt.encode call site: {node_id} google.auth.iam.Signer._make_signing_request
14 2 ...fuzz_jwt_roundtrip.test_roundtrip_unverified call site: {node_id} google.auth.crypt._python_rsa.RSASigner.from_string
2 23 ...fuzz_jwt_roundtrip.test_roundtrip_unverified call site: {node_id} fdp.ConsumeString
2 26 ...fuzz_jwt_roundtrip.test_roundtrip_unverified call site: {node_id} google.auth.jwt.encode
2 32 google.auth.jwt.encode call site: {node_id} google.auth._helpers.unpadded_urlsafe_b64encode
2 35 google.auth._helpers.unpadded_urlsafe_b64encode call site: {node_id} google.auth._helpers.unpadded_urlsafe_b64encode
2 183 google.auth.jwt.decode call site: {node_id} google.auth.exceptions.GoogleAuthError.__init__
1 0 EP call site: {node_id} ...fuzz_jwt_roundtrip.test_roundtrip_unverified
1 30 google.auth.jwt.encode call site: {node_id} header.update

Fuzzer calltree

0 ...fuzz_jwt_roundtrip.TestOneInput [function] [call site] 00000
1 ...fuzz_jwt_roundtrip.test_roundtrip_unverified [function] [call site] 00001
2 atheris.FuzzedDataProvider [function] [call site] 00002
2 google.auth.crypt._python_rsa.RSASigner.from_string [function] [call site] 00003
3 google.auth._helpers.from_bytes [function] [call site] 00004
4 .isinstance [function] [call site] 00005
4 value.decode [function] [call site] 00006
4 .isinstance [function] [call site] 00007
3 pyasn1_modules.pem.readPemBlocksFromFile [function] [call site] 00008
3 six.StringIO [function] [call site] 00009
3 rsa.key.PrivateKey.load_pkcs1 [function] [call site] 00010
3 pyasn1.codec.der.decoder.decode [function] [call site] 00011
3 key_info.getComponentByName [function] [call site] 00012
3 rsa.key.PrivateKey.load_pkcs1 [function] [call site] 00013
3 private_key_info.asOctets [function] [call site] 00014
3 google.auth.crypt._python_rsa.RSASigner.__init__ [function] [call site] 00015
2 google.auth.crypt._cryptography_rsa.RSASigner.from_string [function] [call site] 00016
3 google.auth._helpers.to_bytes [function] [call site] 00017
4 .isinstance [function] [call site] 00018
4 value.encode [function] [call site] 00019
4 .isinstance [function] [call site] 00020
3 cryptography.hazmat.primitives.serialization.load_pem_private_key [function] [call site] 00021
3 google.auth.crypt._cryptography_rsa.RSASigner.__init__ [function] [call site] 00022
2 fdp.ConsumeIntInRange [function] [call site] 00023
2 fdp.ConsumeString [function] [call site] 00024
2 fdp.ConsumeIntInRange [function] [call site] 00025
2 fdp.ConsumeString [function] [call site] 00026
2 fdp.ConsumeString [function] [call site] 00027
2 google.auth.jwt.encode [function] [call site] 00028
3 header.update [function] [call site] 00029
3 .isinstance [function] [call site] 00030
3 header.update [function] [call site] 00031
3 header.update [function] [call site] 00032
3 json.dumps [function] [call site] 00033
3 google.auth._helpers.unpadded_urlsafe_b64encode [function] [call site] 00034
4 base64.urlsafe_b64encode [function] [call site] 00035
3 json.dumps [function] [call site] 00036
3 google.auth._helpers.unpadded_urlsafe_b64encode [function] [call site] 00037
3 google.auth.iam.Signer.sign [function] [call site] 00038
4 google.auth.iam.Signer._make_signing_request [function] [call site] 00039
5 google.auth._helpers.to_bytes [function] [call site] 00040
5 _SIGN_BLOB_URI.format [function] [call site] 00041
5 json.dumps [function] [call site] 00042
5 base64.b64encode [function] [call site] 00043
5 google.auth.api_key.Credentials.before_request [function] [call site] 00044
6 google.auth.api_key.Credentials.apply [function] [call site] 00045
5 google.auth.credentials.Credentials.before_request [function] [call site] 00046
6 google.auth.external_account_authorized_user.Credentials.refresh [function] [call site] 00047
7 google.auth._helpers.utcnow [function] [call site] 00048
8 datetime.datetime.utcnow [function] [call site] 00049
7 google.auth.external_account_authorized_user.Credentials._make_sts_request [function] [call site] 00050
8 google.oauth2.sts.Client.refresh_token [function] [call site] 00051
9 google.oauth2.sts.Client._make_request [function] [call site] 00052
10 _URLENCODED_HEADERS.copy [function] [call site] 00053
10 google.oauth2.utils.OAuthClientAuthHandler.apply_client_authentication_options [function] [call site] 00055
11 google.oauth2.utils.OAuthClientAuthHandler._inject_authenticated_headers [function] [call site] 00056
12 base64.b64encode [function] [call site] 00057
11 google.oauth2.utils.OAuthClientAuthHandler._inject_authenticated_request_body [function] [call site] 00058
10 six.moves.urllib.parse.urlencode [function] [call site] 00059
10 response.data.decode [function] [call site] 00060
10 .hasattr [function] [call site] 00061
10 google.oauth2.utils.handle_error_response [function] [call site] 00062
11 json.loads [function] [call site] 00063
11 error_components.append [function] [call site] 00064
11 error_components.append [function] [call site] 00065
11 error_components.append [function] [call site] 00066
10 json.loads [function] [call site] 00067
7 response_data.get [function] [call site] 00068
7 response_data.get [function] [call site] 00069
7 datetime.timedelta [function] [call site] 00070
6 google.auth.impersonated_credentials.Credentials.refresh [function] [call site] 00071
7 google.auth.impersonated_credentials.Credentials._update_token [function] [call site] 00072
8 google.auth.metrics.token_request_access_token_impersonate [function] [call site] 00074
9 google.auth.metrics.python_and_auth_lib_version [function] [call site] 00075
10 platform.python_version [function] [call site] 00076
8 google.auth.impersonated_credentials._make_iam_token_request [function] [call site] 00077
9 _IAM_ENDPOINT.format [function] [call site] 00078
9 json.dumps [function] [call site] 00079
9 response.data.decode [function] [call site] 00080
9 json.loads [function] [call site] 00082
9 datetime.datetime.strptime [function] [call site] 00083
9 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00084
9 six.raise_from [function] [call site] 00087
6 google.oauth2.service_account.Credentials.refresh [function] [call site] 00088
7 google.oauth2.service_account.Credentials._use_self_signed_jwt [function] [call site] 00089
7 google.oauth2.service_account.Credentials._make_authorization_grant_assertion [function] [call site] 00090
8 google.auth._helpers.utcnow [function] [call site] 00091
8 datetime.timedelta [function] [call site] 00092
8 google.auth._helpers.datetime_to_secs [function] [call site] 00093
9 value.utctimetuple [function] [call site] 00094
9 calendar.timegm [function] [call site] 00095
8 google.auth._helpers.datetime_to_secs [function] [call site] 00096
8 google.auth._helpers.scopes_to_string [function] [call site] 00097
8 payload.update [function] [call site] 00098
8 payload.setdefault [function] [call site] 00099
8 google.auth.jwt.encode [function] [call site] 00100
7 google.oauth2._client.jwt_grant [function] [call site] 00101
8 google.oauth2._client._token_endpoint_request [function] [call site] 00102
9 google.oauth2._client._token_endpoint_request_no_throw [function] [call site] 00103
10 google.auth._exponential_backoff.ExponentialBackoff.__iter__ [function] [call site] 00104
10 google.auth._exponential_backoff.ExponentialBackoff.__next__ [function] [call site] 00105
11 random.uniform [function] [call site] 00106
11 time.sleep [function] [call site] 00107
10 json.dumps [function] [call site] 00108
10 six.moves.urllib.parse.urlencode [function] [call site] 00109
10 headers_to_use.update [function] [call site] 00110
10 google.oauth2._client._token_endpoint_request_no_throw._perform_request [function] [call site] 00111
11 response.data.decode [function] [call site] 00112
11 .hasattr [function] [call site] 00113
11 json.loads [function] [call site] 00114
11 google.oauth2._client._can_retry [function] [call site] 00115
12 response_data.get [function] [call site] 00116
12 response_data.get [function] [call site] 00117
12 .isinstance [function] [call site] 00118
12 .isinstance [function] [call site] 00119
10 google.auth._exponential_backoff.ExponentialBackoff.__init__ [function] [call site] 00121
10 google.oauth2._client._token_endpoint_request_no_throw._perform_request [function] [call site] 00122
9 google.oauth2._client._handle_error_response [function] [call site] 00123
10 .isinstance [function] [call site] 00124
10 response_data.get [function] [call site] 00125
10 json.dumps [function] [call site] 00126
8 google.auth.metrics.token_request_access_token_sa_assertion [function] [call site] 00127
9 google.auth.metrics.python_and_auth_lib_version [function] [call site] 00128
8 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00129
8 six.raise_from [function] [call site] 00130
8 google.oauth2._client._parse_expiry [function] [call site] 00131
9 response_data.get [function] [call site] 00132
9 .isinstance [function] [call site] 00133
9 google.auth._helpers.utcnow [function] [call site] 00135
9 datetime.timedelta [function] [call site] 00136
6 google.oauth2.gdch_credentials.ServiceAccountCredentials.refresh [function] [call site] 00137
7 .isinstance [function] [call site] 00138
7 google.oauth2.gdch_credentials.ServiceAccountCredentials._create_jwt [function] [call site] 00139
8 google.auth._helpers.utcnow [function] [call site] 00140
8 google.auth._helpers.datetime_to_secs [function] [call site] 00141
8 google.auth._helpers.datetime_to_secs [function] [call site] 00142
8 google.auth.jwt.encode [function] [call site] 00143
8 google.auth._helpers.from_bytes [function] [call site] 00144
7 google.oauth2._client._token_endpoint_request [function] [call site] 00145
7 google.oauth2._client._handle_refresh_grant_response [function] [call site] 00146
8 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00147
8 six.raise_from [function] [call site] 00148
8 response_data.get [function] [call site] 00149
8 google.oauth2._client._parse_expiry [function] [call site] 00150
6 google.oauth2.service_account.IDTokenCredentials.refresh [function] [call site] 00151
7 google.oauth2.service_account.IDTokenCredentials._refresh_with_iam_endpoint [function] [call site] 00152
8 google.auth.jwt.Credentials.from_signing_credentials [function] [call site] 00153
9 kwargs.setdefault [function] [call site] 00154
9 kwargs.setdefault [function] [call site] 00155
9 google.auth.jwt.Credentials.__init__ [function] [call site] 00156
8 jwt_credentials.refresh [function] [call site] 00158
8 google.oauth2._client.call_iam_generate_id_token_endpoint [function] [call site] 00159
9 google.oauth2._client._token_endpoint_request [function] [call site] 00160
9 _IAM_IDTOKEN_ENDPOINT.format [function] [call site] 00161
9 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00162
9 six.raise_from [function] [call site] 00163
9 google.auth.jwt.decode [function] [call site] 00164
10 google.auth.jwt._unverified_decode [function] [call site] 00165
11 google.auth._helpers.to_bytes [function] [call site] 00166
11 token.count [function] [call site] 00167
11 token.split [function] [call site] 00168
11 google.auth._helpers.padded_urlsafe_b64decode [function] [call site] 00169
12 google.auth._helpers.to_bytes [function] [call site] 00170
12 base64.urlsafe_b64decode [function] [call site] 00172
11 google.auth.jwt._decode_jwt_segment [function] [call site] 00173
12 google.auth._helpers.padded_urlsafe_b64decode [function] [call site] 00174
12 section_bytes.decode [function] [call site] 00175
12 json.loads [function] [call site] 00176
12 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00177
12 six.raise_from [function] [call site] 00178
11 google.auth.jwt._decode_jwt_segment [function] [call site] 00179
11 .isinstance [function] [call site] 00180
11 .isinstance [function] [call site] 00181
10 header.get [function] [call site] 00182
10 header.get [function] [call site] 00183
10 six.raise_from [function] [call site] 00184
10 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00185
10 six.raise_from [function] [call site] 00186
10 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00187
10 .isinstance [function] [call site] 00188
10 certs.values [function] [call site] 00189
10 google.auth.crypt.verify_signature [function] [call site] 00190
11 .isinstance [function] [call site] 00191
11 verifier_cls.from_string [function] [call site] 00192
11 verifier.verify [function] [call site] 00193
10 google.auth.jwt._verify_iat_and_exp [function] [call site] 00194
11 google.auth._helpers.utcnow [function] [call site] 00195
11 google.auth._helpers.datetime_to_secs [function] [call site] 00196
10 payload.get [function] [call site] 00197
10 .isinstance [function] [call site] 00198
9 datetime.datetime.utcfromtimestamp [function] [call site] 00199
8 jwt_credentials.token.decode [function] [call site] 00200
7 google.oauth2.service_account.IDTokenCredentials._make_authorization_grant_assertion [function] [call site] 00201
8 google.auth._helpers.utcnow [function] [call site] 00202
8 datetime.timedelta [function] [call site] 00203
8 google.auth._helpers.datetime_to_secs [function] [call site] 00204
8 google.auth._helpers.datetime_to_secs [function] [call site] 00205
8 payload.update [function] [call site] 00206
8 google.auth.jwt.encode [function] [call site] 00207
7 google.oauth2._client.id_token_jwt_grant [function] [call site] 00208
8 google.oauth2._client._token_endpoint_request [function] [call site] 00209
8 google.auth.metrics.token_request_id_token_sa_assertion [function] [call site] 00210
9 google.auth.metrics.python_and_auth_lib_version [function] [call site] 00211
8 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00212
8 six.raise_from [function] [call site] 00213
8 google.auth.jwt.decode [function] [call site] 00214
8 datetime.datetime.utcfromtimestamp [function] [call site] 00215
6 google.auth.external_account.Credentials.refresh [function] [call site] 00216
7 google.auth.impersonated_credentials.Credentials.refresh [function] [call site] 00217
7 google.auth._helpers.utcnow [function] [call site] 00218
7 google.oauth2.sts.Client.exchange_token [function] [call site] 00219
8 json.dumps [function] [call site] 00220
8 six.moves.urllib.parse.quote [function] [call site] 00221
8 google.oauth2.sts.Client._make_request [function] [call site] 00223
7 google.auth.external_account.Credentials.retrieve_subject_token [function] [call site] 00224
7 response_data.get [function] [call site] 00225
7 response_data.get [function] [call site] 00226
7 datetime.timedelta [function] [call site] 00227
6 google.auth.compute_engine.credentials.Credentials.refresh [function] [call site] 00228
7 google.auth.compute_engine.credentials.Credentials._retrieve_info [function] [call site] 00229
8 google.auth.compute_engine._metadata.get_service_account_info [function] [call site] 00230
9 google.auth.compute_engine._metadata.get [function] [call site] 00231
10 six.moves.urllib.parse.urljoin [function] [call site] 00232
10 _METADATA_HEADERS.copy [function] [call site] 00233
10 headers_to_use.update [function] [call site] 00234
10 google.auth._helpers.update_query [function] [call site] 00235
11 six.moves.urllib.parse.urlparse [function] [call site] 00236
11 six.moves.urllib.parse.parse_qs [function] [call site] 00237
11 query_params.update [function] [call site] 00238
11 six.iteritems [function] [call site] 00239
11 six.moves.urllib.parse.urlencode [function] [call site] 00240
11 parts._replace [function] [call site] 00241
11 six.moves.urllib.parse.urlunparse [function] [call site] 00242
10 _LOGGER.warning [function] [call site] 00243
10 google.auth._helpers.from_bytes [function] [call site] 00244
10 json.loads [function] [call site] 00245
10 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00246
10 six.raise_from [function] [call site] 00247
7 google.auth.compute_engine._metadata.get_service_account_token [function] [call site] 00248
8 .isinstance [function] [call site] 00249
8 google.auth.metrics.token_request_access_token_mds [function] [call site] 00250
9 google.auth.metrics.python_and_auth_lib_version [function] [call site] 00251
8 google.auth.compute_engine._metadata.get [function] [call site] 00252
8 google.auth._helpers.utcnow [function] [call site] 00253
8 datetime.timedelta [function] [call site] 00254
7 google.auth.exceptions.GoogleAuthError.__init__ [function] [call site] 00255
7 six.raise_from [function] [call site] 00256
6 google.auth.app_engine.Credentials.refresh [function] [call site] 00257
7 google.appengine.api.app_identity.get_access_token [function] [call site] 00258
7 datetime.datetime.utcfromtimestamp [function] [call site] 00259
6 google.oauth2.credentials.Credentials.refresh [function] [call site] 00260
7 google.oauth2.credentials.Credentials.refresh_handler [function] [call site] 00261
8 .callable [function] [call site] 00262
7 .isinstance [function] [call site] 00263
7 .isinstance [function] [call site] 00264
7 google.auth._helpers.utcnow [function] [call site] 00265
7 google.oauth2.reauth.refresh_grant [function] [call site] 00266
8 google.auth.metrics.token_request_user [function] [call site] 00267
9 google.auth.metrics.python_and_auth_lib_version [function] [call site] 00268
8 google.oauth2._client._token_endpoint_request_no_throw [function] [call site] 00269
8 .isinstance [function] [call site] 00270
8 response_data.get [function] [call site] 00271
8 response_data.get [function] [call site] 00272
8 response_data.get [function] [call site] 00273
8 google.oauth2.reauth.get_rapt_token [function] [call site] 00274
9 sys.stderr.write [function] [call site] 00275
9 google.oauth2._client.refresh_grant [function] [call site] 00276
10 google.oauth2._client._token_endpoint_request [function] [call site] 00277
10 google.oauth2._client._handle_refresh_grant_response [function] [call site] 00278
9 google.oauth2.reauth._obtain_rapt [function] [call site] 00279
10 google.oauth2.reauth._get_challenges [function] [call site] 00280
11 google.auth.metrics.reauth_start [function] [call site] 00281
12 google.auth.metrics.python_and_auth_lib_version [function] [call site] 00282
11 google.oauth2._client._token_endpoint_request [function] [call site] 00283
10 challenges.AVAILABLE_CHALLENGES.keys [function] [call site] 00284
10 six.moves.range [function] [call site] 00286
10 google.oauth2.reauth.is_interactive [function] [call site] 00287
11 sys.stdin.isatty [function] [call site] 00288
10 google.oauth2.reauth._run_next_challenge [function] [call site] 00289
11 challenges.AVAILABLE_CHALLENGES.get [function] [call site] 00290
11 c.obtain_challenge_input [function] [call site] 00291
11 google.oauth2.reauth._send_challenge_result [function] [call site] 00292
12 google.auth.metrics.reauth_continue [function] [call site] 00293
13 google.auth.metrics.python_and_auth_lib_version [function] [call site] 00294
12 google.oauth2._client._token_endpoint_request [function] [call site] 00295
8 google.oauth2._client._token_endpoint_request_no_throw [function] [call site] 00296
8 google.oauth2._client._handle_error_response [function] [call site] 00297
8 google.oauth2._client._handle_refresh_grant_response [function] [call site] 00298
7 grant_response.get [function] [call site] 00299
7 .frozenset [function] [call site] 00300
7 .frozenset [function] [call site] 00301
7 _LOGGER.warning [function] [call site] 00302
6 google.auth.api_key.Credentials.refresh [function] [call site] 00303
6 google.auth.credentials.Credentials.refresh [function] [call site] 00304
6 google.oauth2.service_account.Credentials._metric_header_for_usage [function] [call site] 00305
7 google.oauth2.service_account.Credentials._use_self_signed_jwt [function] [call site] 00306
6 google.auth.impersonated_credentials.Credentials._metric_header_for_usage [function] [call site] 00307
6 google.auth.credentials.Credentials._metric_header_for_usage [function] [call site] 00308
6 google.auth.compute_engine.credentials.Credentials._metric_header_for_usage [function] [call site] 00309
6 google.oauth2.credentials.Credentials._metric_header_for_usage [function] [call site] 00310
6 google.auth.metrics.add_metric_header [function] [call site] 00311
6 google.auth.credentials.Credentials.apply [function] [call site] 00312
7 google.auth._helpers.from_bytes [function] [call site] 00313
6 google.auth.api_key.Credentials.apply [function] [call site] 00314
5 response.data.decode [function] [call site] 00315
5 json.loads [function] [call site] 00316
4 base64.b64decode [function] [call site] 00317
3 google.auth._helpers.unpadded_urlsafe_b64encode [function] [call site] 00318
3 segments.append [function] [call site] 00319
2 google.auth.jwt.decode [function] [call site] 00320