@zerothreatai/vulnerability-registry 2.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/categories/authentication.js +17 -0
- package/dist/categories/configuration.js +501 -0
- package/dist/categories/injection.js +34 -0
- package/dist/categories/sensitive-paths.js +84 -0
- package/dist/categories/ssrf.js +11 -0
- package/dist/categories/xss.js +15 -0
- package/dist/category.d.ts +6 -0
- package/dist/category.js +15 -0
- package/dist/error-codes.d.ts +20 -0
- package/dist/error-codes.js +20 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +5 -1
- package/dist/scanner.d.ts +6 -0
- package/dist/scanner.js +22 -0
- package/dist/types.d.ts +2 -0
- package/dist-cjs/categories/authentication.js +17 -0
- package/dist-cjs/categories/configuration.js +501 -0
- package/dist-cjs/categories/injection.js +34 -0
- package/dist-cjs/categories/sensitive-paths.js +84 -0
- package/dist-cjs/categories/ssrf.js +11 -0
- package/dist-cjs/categories/xss.js +15 -0
- package/dist-cjs/category.js +18 -0
- package/dist-cjs/error-codes.js +20 -0
- package/dist-cjs/index.js +7 -1
- package/dist-cjs/scanner.js +25 -0
- package/package.json +1 -1
- package/src/categories/authentication.js +54 -40
- package/src/categories/authentication.ts +134 -117
- package/src/categories/configuration.js +990 -114
- package/src/categories/configuration.ts +1625 -1104
- package/src/categories/injection.js +105 -74
- package/src/categories/injection.ts +129 -95
- package/src/categories/sensitive-paths.js +255 -174
- package/src/categories/sensitive-paths.ts +84 -0
- package/src/categories/ssrf.js +36 -28
- package/src/categories/ssrf.ts +11 -0
- package/src/categories/xss.js +47 -35
- package/src/categories/xss.ts +15 -0
- package/src/category.ts +16 -0
- package/src/error-codes.d.ts +38 -0
- package/src/error-codes.js +41 -6
- package/src/error-codes.ts +25 -5
- package/src/index.js +33 -48
- package/src/index.ts +20 -14
- package/src/scanner.ts +23 -0
- package/src/types.d.ts +2 -0
- package/src/types.js +1 -2
- package/src/types.ts +4 -2
- package/zerothreatai-vulnerability-registry-4npm .0.0.tgz +0 -0
|
@@ -17,6 +17,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
17
17
|
title: 'JWT Vulnerability - None Algorithm Attack',
|
|
18
18
|
description: 'Critical JWT vulnerability where the server accepts tokens with "alg": "none" in the header, allowing attackers to forge valid tokens without knowing the secret key by simply removing the signature and modifying claims to impersonate any user including administrators.',
|
|
19
19
|
severity: 'critical',
|
|
20
|
+
levelId: 1,
|
|
20
21
|
category: 'authentication',
|
|
21
22
|
scanner: 'jwt',
|
|
22
23
|
cvss: {
|
|
@@ -39,6 +40,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
39
40
|
title: 'JWT Vulnerability - Weak Secret Key',
|
|
40
41
|
description: 'JWT implementation using a weak or common secret key for HMAC signature verification that can be brute-forced or found in common secret dictionaries, allowing attackers to forge arbitrary valid tokens and bypass authentication to access any user account.',
|
|
41
42
|
severity: 'high',
|
|
43
|
+
levelId: 2,
|
|
42
44
|
category: 'authentication',
|
|
43
45
|
scanner: 'jwt',
|
|
44
46
|
cvss: {
|
|
@@ -61,6 +63,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
61
63
|
title: 'JWT Vulnerability - Algorithm Confusion Attack',
|
|
62
64
|
description: 'JWT key confusion vulnerability where the server public key can be used as an HMAC secret by switching the algorithm from RS256 to HS256, allowing attackers to forge valid tokens using the publicly available key to generate valid HMAC signatures.',
|
|
63
65
|
severity: 'critical',
|
|
66
|
+
levelId: 1,
|
|
64
67
|
category: 'authentication',
|
|
65
68
|
scanner: 'jwt',
|
|
66
69
|
cvss: {
|
|
@@ -86,6 +89,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
86
89
|
title: 'Broken Access Control - Anonymous Access',
|
|
87
90
|
description: 'Critical broken access control vulnerability where authenticated endpoints can be accessed without any authentication by simply removing auth headers or cookies, exposing sensitive functionality and data to unauthenticated attackers without any credential requirement.',
|
|
88
91
|
severity: 'high',
|
|
92
|
+
levelId: 2,
|
|
89
93
|
category: 'access_control',
|
|
90
94
|
scanner: 'broken-access',
|
|
91
95
|
cvss: {
|
|
@@ -108,6 +112,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
108
112
|
title: 'Broken Access Control - Insecure Direct Object Reference',
|
|
109
113
|
description: 'IDOR vulnerability where users can access or modify resources belonging to other users by manipulating predictable identifiers like sequential IDs in URLs or request parameters, without proper authorization checks verifying resource ownership.',
|
|
110
114
|
severity: 'high',
|
|
115
|
+
levelId: 2,
|
|
111
116
|
category: 'access_control',
|
|
112
117
|
scanner: 'broken-access',
|
|
113
118
|
cvss: {
|
|
@@ -130,6 +135,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
130
135
|
title: 'Broken Access Control - Vertical Privilege Escalation',
|
|
131
136
|
description: 'Vertical privilege escalation vulnerability allowing regular users to access or perform administrative functions by directly accessing admin endpoints or manipulating role/permission parameters, bypassing role-based access controls to gain elevated privileges.',
|
|
132
137
|
severity: 'critical',
|
|
138
|
+
levelId: 1,
|
|
133
139
|
category: 'access_control',
|
|
134
140
|
scanner: 'broken-access',
|
|
135
141
|
cvss: {
|
|
@@ -155,6 +161,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
155
161
|
title: 'Mass Assignment - Role Escalation',
|
|
156
162
|
description: 'Mass assignment vulnerability allowing attackers to escalate privileges by including additional parameters like "role", "isAdmin", or "permissions" in requests that the application binds to user objects without proper allowlist filtering of settable fields.',
|
|
157
163
|
severity: 'high',
|
|
164
|
+
levelId: 2,
|
|
158
165
|
category: 'access_control',
|
|
159
166
|
scanner: 'model-state',
|
|
160
167
|
cvss: {
|
|
@@ -177,6 +184,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
177
184
|
title: 'Mass Assignment - Prototype Pollution',
|
|
178
185
|
description: 'JavaScript prototype pollution vulnerability through mass assignment where attackers inject __proto__ or constructor.prototype properties that modify the Object prototype globally, potentially leading to denial of service, security bypass, or remote code execution.',
|
|
179
186
|
severity: 'high',
|
|
187
|
+
levelId: 2,
|
|
180
188
|
category: 'access_control',
|
|
181
189
|
scanner: 'model-state',
|
|
182
190
|
cvss: {
|
|
@@ -199,6 +207,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
199
207
|
title: 'JWT Vulnerability - Expired Token Accepted',
|
|
200
208
|
description: 'JWT implementation does not properly validate token expiration (exp claim), accepting expired tokens that should be rejected. This allows attackers with previously captured tokens to reuse them indefinitely, maintaining unauthorized access without credential updates.',
|
|
201
209
|
severity: 'medium',
|
|
210
|
+
levelId: 3,
|
|
202
211
|
category: 'authentication',
|
|
203
212
|
scanner: 'jwt',
|
|
204
213
|
cvss: {
|
|
@@ -221,6 +230,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
221
230
|
title: 'JWT Vulnerability - Missing Required Claims',
|
|
222
231
|
description: 'JWT tokens are missing critical security claims like exp (expiration), iat (issued at), nbf (not before), or iss (issuer), reducing the security guarantees of the token system and potentially allowing token reuse, replay attacks, or cross-tenant access.',
|
|
223
232
|
severity: 'medium',
|
|
233
|
+
levelId: 3,
|
|
224
234
|
category: 'authentication',
|
|
225
235
|
scanner: 'jwt',
|
|
226
236
|
cvss: {
|
|
@@ -243,6 +253,7 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
243
253
|
title: 'Broken Access Control - Horizontal Privilege Escalation',
|
|
244
254
|
description: 'Horizontal privilege escalation vulnerability where authenticated users can access data or perform actions belonging to other users at the same privilege level by manipulating user identifiers, object references, or session parameters without ownership verification.',
|
|
245
255
|
severity: 'high',
|
|
256
|
+
levelId: 2,
|
|
246
257
|
category: 'access_control',
|
|
247
258
|
scanner: 'broken-access',
|
|
248
259
|
cvss: {
|
|
@@ -259,12 +270,13 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
259
270
|
remediation: 'Implement record-level authorization checks. Verify resource ownership against the authenticated user session. Use indirect references that map to actual resources server-side.',
|
|
260
271
|
},
|
|
261
272
|
|
|
262
|
-
[VulnerabilityCode.MASSASSIGN_HIDDEN_FIELD]: {
|
|
263
|
-
id: 68,
|
|
264
|
-
code: VulnerabilityCode.MASSASSIGN_HIDDEN_FIELD,
|
|
265
|
-
title: 'Mass Assignment - Hidden Field Manipulation',
|
|
273
|
+
[VulnerabilityCode.MASSASSIGN_HIDDEN_FIELD]: {
|
|
274
|
+
id: 68,
|
|
275
|
+
code: VulnerabilityCode.MASSASSIGN_HIDDEN_FIELD,
|
|
276
|
+
title: 'Mass Assignment - Hidden Field Manipulation',
|
|
266
277
|
description: 'Mass assignment vulnerability where attackers can modify hidden form fields or server-side computed values like price, discount, userId, or timestamp by including them in request bodies, bypassing UI restrictions to manipulate business logic or data integrity.',
|
|
267
278
|
severity: 'medium',
|
|
279
|
+
levelId: 3,
|
|
268
280
|
category: 'access_control',
|
|
269
281
|
scanner: 'model-state',
|
|
270
282
|
cvss: {
|
|
@@ -278,118 +290,123 @@ export const AUTH_VULNERABILITIES: Record<string, VulnerabilityDefinition> = {
|
|
|
278
290
|
owasp: [
|
|
279
291
|
{ id: 'A08:2021', name: 'Software and Data Integrity Failures', url: 'https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/' },
|
|
280
292
|
],
|
|
281
|
-
remediation: 'Never trust client-provided values for server-computed fields. Use explicit DTOs with allowlisted fields. Recompute amounts, timestamps, and IDs server-side.',
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
[VulnerabilityCode.JWT_CLAIM_TAMPERING]: {
|
|
285
|
-
id: 131,
|
|
286
|
-
code: VulnerabilityCode.JWT_CLAIM_TAMPERING,
|
|
287
|
-
title: 'JWT - Claim Tampering',
|
|
288
|
-
description: 'JWT claim tampering vulnerability where attackers can modify token claims such as roles, user IDs, or permissions and the server accepts the tampered token, enabling privilege escalation or unauthorized access.',
|
|
289
|
-
severity: 'high',
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
{ id: '
|
|
346
|
-
],
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
293
|
+
remediation: 'Never trust client-provided values for server-computed fields. Use explicit DTOs with allowlisted fields. Recompute amounts, timestamps, and IDs server-side.',
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
[VulnerabilityCode.JWT_CLAIM_TAMPERING]: {
|
|
297
|
+
id: 131,
|
|
298
|
+
code: VulnerabilityCode.JWT_CLAIM_TAMPERING,
|
|
299
|
+
title: 'JWT - Claim Tampering',
|
|
300
|
+
description: 'JWT claim tampering vulnerability where attackers can modify token claims such as roles, user IDs, or permissions and the server accepts the tampered token, enabling privilege escalation or unauthorized access.',
|
|
301
|
+
severity: 'high',
|
|
302
|
+
levelId: 2,
|
|
303
|
+
category: 'authentication',
|
|
304
|
+
scanner: 'jwt',
|
|
305
|
+
cvss: {
|
|
306
|
+
score: 8.1,
|
|
307
|
+
vector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N',
|
|
308
|
+
severity: 'HIGH',
|
|
309
|
+
},
|
|
310
|
+
cwe: [
|
|
311
|
+
{ id: 'CWE-345', name: 'Insufficient Verification of Data Authenticity', url: 'https://cwe.mitre.org/data/definitions/345.html' },
|
|
312
|
+
],
|
|
313
|
+
owasp: [
|
|
314
|
+
{ id: 'A07:2021', name: 'Identification and Authentication Failures', url: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/' },
|
|
315
|
+
],
|
|
316
|
+
remediation: 'Validate JWT signatures using strong algorithms and trusted keys. Reject unsigned or weakly signed tokens. Enforce claim validation and server-side authorization checks.',
|
|
317
|
+
},
|
|
318
|
+
|
|
319
|
+
[VulnerabilityCode.JWT_KID_INJECTION]: {
|
|
320
|
+
id: 132,
|
|
321
|
+
code: VulnerabilityCode.JWT_KID_INJECTION,
|
|
322
|
+
title: 'JWT - KID Header Injection',
|
|
323
|
+
description: 'JWT key identifier (kid) injection vulnerability where attackers manipulate the kid header to influence key selection or file paths, potentially bypassing signature verification or loading attacker-controlled keys.',
|
|
324
|
+
severity: 'high',
|
|
325
|
+
levelId: 2,
|
|
326
|
+
category: 'authentication',
|
|
327
|
+
scanner: 'jwt',
|
|
328
|
+
cvss: {
|
|
329
|
+
score: 7.5,
|
|
330
|
+
vector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N',
|
|
331
|
+
severity: 'HIGH',
|
|
332
|
+
},
|
|
333
|
+
cwe: [
|
|
334
|
+
{ id: 'CWE-73', name: 'External Control of File Name or Path', url: 'https://cwe.mitre.org/data/definitions/73.html' },
|
|
335
|
+
],
|
|
336
|
+
owasp: [
|
|
337
|
+
{ id: 'A07:2021', name: 'Identification and Authentication Failures', url: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/' },
|
|
338
|
+
],
|
|
339
|
+
remediation: 'Avoid direct use of kid as a file path or URL. Use a strict allowlist of key IDs and map to known keys in configuration. Reject unexpected or oversized kid values.',
|
|
340
|
+
},
|
|
341
|
+
|
|
342
|
+
[VulnerabilityCode.JWT_JKU_INJECTION]: {
|
|
343
|
+
id: 133,
|
|
344
|
+
code: VulnerabilityCode.JWT_JKU_INJECTION,
|
|
345
|
+
title: 'JWT - JKU Header Injection',
|
|
346
|
+
description: 'JWT JKU (JWK Set URL) header injection vulnerability where attackers can control the URL used to fetch signing keys, allowing them to supply their own keys and forge valid tokens.',
|
|
347
|
+
severity: 'high',
|
|
348
|
+
levelId: 2,
|
|
349
|
+
category: 'authentication',
|
|
350
|
+
scanner: 'jwt',
|
|
351
|
+
cvss: {
|
|
352
|
+
score: 8.1,
|
|
353
|
+
vector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N',
|
|
354
|
+
severity: 'HIGH',
|
|
355
|
+
},
|
|
356
|
+
cwe: [
|
|
357
|
+
{ id: 'CWE-346', name: 'Origin Validation Error', url: 'https://cwe.mitre.org/data/definitions/346.html' },
|
|
358
|
+
],
|
|
359
|
+
owasp: [
|
|
360
|
+
{ id: 'A07:2021', name: 'Identification and Authentication Failures', url: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/' },
|
|
361
|
+
],
|
|
362
|
+
remediation: 'Ignore untrusted JKU values or restrict to a strict allowlist of trusted JWKS endpoints. Pin keys or use local key material where possible.',
|
|
363
|
+
},
|
|
364
|
+
|
|
365
|
+
[VulnerabilityCode.JWT_EMBEDDED_JWK]: {
|
|
366
|
+
id: 134,
|
|
367
|
+
code: VulnerabilityCode.JWT_EMBEDDED_JWK,
|
|
368
|
+
title: 'JWT - Embedded JWK Injection',
|
|
369
|
+
description: 'JWT embedded JWK vulnerability where attackers include their own JWK in the token header and the server accepts it as a trusted signing key, enabling forged tokens and authentication bypass.',
|
|
370
|
+
severity: 'high',
|
|
371
|
+
levelId: 2,
|
|
372
|
+
category: 'authentication',
|
|
373
|
+
scanner: 'jwt',
|
|
374
|
+
cvss: {
|
|
375
|
+
score: 8.1,
|
|
376
|
+
vector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N',
|
|
377
|
+
severity: 'HIGH',
|
|
378
|
+
},
|
|
379
|
+
cwe: [
|
|
380
|
+
{ id: 'CWE-347', name: 'Improper Verification of Cryptographic Signature', url: 'https://cwe.mitre.org/data/definitions/347.html' },
|
|
381
|
+
],
|
|
382
|
+
owasp: [
|
|
383
|
+
{ id: 'A07:2021', name: 'Identification and Authentication Failures', url: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/' },
|
|
384
|
+
],
|
|
385
|
+
remediation: 'Reject embedded JWKs from tokens unless explicitly required and validated against a trusted key set. Use pinned keys and strict header validation.',
|
|
386
|
+
},
|
|
387
|
+
|
|
388
|
+
[VulnerabilityCode.JWT_X5C_INJECTION]: {
|
|
389
|
+
id: 135,
|
|
390
|
+
code: VulnerabilityCode.JWT_X5C_INJECTION,
|
|
391
|
+
title: 'JWT - X5C Header Injection',
|
|
392
|
+
description: 'JWT x5c header injection vulnerability where attackers provide an untrusted certificate chain, allowing them to influence key selection or bypass signature validation if certificate trust is not strictly enforced.',
|
|
393
|
+
severity: 'high',
|
|
394
|
+
levelId: 2,
|
|
395
|
+
category: 'authentication',
|
|
396
|
+
scanner: 'jwt',
|
|
397
|
+
cvss: {
|
|
398
|
+
score: 7.5,
|
|
399
|
+
vector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N',
|
|
400
|
+
severity: 'HIGH',
|
|
401
|
+
},
|
|
402
|
+
cwe: [
|
|
403
|
+
{ id: 'CWE-295', name: 'Improper Certificate Validation', url: 'https://cwe.mitre.org/data/definitions/295.html' },
|
|
404
|
+
],
|
|
405
|
+
owasp: [
|
|
406
|
+
{ id: 'A07:2021', name: 'Identification and Authentication Failures', url: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/' },
|
|
407
|
+
],
|
|
408
|
+
remediation: 'Ignore untrusted x5c headers or validate certificate chains against a trusted root store with strict policy. Prefer pinned public keys or JWKS allowlists.',
|
|
409
|
+
},
|
|
410
|
+
};
|
|
394
411
|
|
|
395
412
|
export default AUTH_VULNERABILITIES;
|