@zerothreatai/vulnerability-registry 4.0.0 → 6.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 -17
- package/dist/categories/configuration.js +80 -80
- package/dist/categories/injection.js +34 -34
- package/dist/categories/sensitive-paths.js +84 -84
- package/dist/categories/ssrf.js +11 -11
- package/dist/categories/xss.js +15 -15
- package/dist/compliance-codes.d.ts +207 -0
- package/dist/compliance-codes.js +213 -0
- package/dist/compliances/gdpr.d.ts +2 -0
- package/dist/compliances/gdpr.js +252 -0
- package/dist/compliances/helpers.d.ts +6 -0
- package/dist/compliances/helpers.js +11 -0
- package/dist/compliances/hipaa.d.ts +2 -0
- package/dist/compliances/hipaa.js +187 -0
- package/dist/compliances/index.d.ts +5 -0
- package/dist/compliances/index.js +5 -0
- package/dist/compliances/owasp.d.ts +2 -0
- package/dist/compliances/owasp.js +127 -0
- package/dist/compliances/pci-dss.d.ts +2 -0
- package/dist/compliances/pci-dss.js +260 -0
- package/dist/compliances/sans-top-25.d.ts +2 -0
- package/dist/compliances/sans-top-25.js +242 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +7 -1
- package/dist/types.d.ts +33 -0
- package/dist/types.js +11 -1
- package/dist-cjs/categories/authentication.js +17 -17
- package/dist-cjs/categories/configuration.js +80 -80
- package/dist-cjs/categories/injection.js +34 -34
- package/dist-cjs/categories/sensitive-paths.js +84 -84
- package/dist-cjs/categories/ssrf.js +11 -11
- package/dist-cjs/categories/xss.js +15 -15
- package/dist-cjs/compliance-codes.js +216 -0
- package/dist-cjs/compliances/gdpr.js +255 -0
- package/dist-cjs/compliances/helpers.js +19 -0
- package/dist-cjs/compliances/hipaa.js +190 -0
- package/dist-cjs/compliances/index.js +13 -0
- package/dist-cjs/compliances/owasp.js +130 -0
- package/dist-cjs/compliances/pci-dss.js +263 -0
- package/dist-cjs/compliances/sans-top-25.js +245 -0
- package/dist-cjs/index.js +12 -1
- package/dist-cjs/types.js +12 -0
- package/package.json +40 -32
- package/scripts/assign-ids.ts +105 -0
- package/scripts/check-duplicate-ids.ts +45 -0
- package/src/categories/authentication.ts +17 -17
- package/src/categories/configuration.ts +80 -80
- package/src/categories/injection.ts +34 -34
- package/src/categories/sensitive-paths.ts +84 -84
- package/src/categories/ssrf.ts +11 -11
- package/src/categories/xss.ts +15 -15
- package/src/compliance-codes.ts +216 -0
- package/src/compliances/README.md +82 -0
- package/src/compliances/gdpr.ts +258 -0
- package/src/compliances/helpers.ts +29 -0
- package/src/compliances/hipaa.ts +193 -0
- package/src/compliances/index.ts +5 -0
- package/src/compliances/owasp.ts +133 -0
- package/src/compliances/pci-dss.ts +266 -0
- package/src/compliances/sans-top-25.ts +246 -0
- package/src/id-registry.json +1235 -0
- package/src/index.ts +12 -1
- package/src/types.ts +40 -4
- package/src/categories/authentication.d.ts +0 -8
- package/src/categories/authentication.d.ts.map +0 -1
- package/src/categories/authentication.js +0 -392
- package/src/categories/authentication.js.map +0 -1
- package/src/categories/configuration.d.ts +0 -8
- package/src/categories/configuration.d.ts.map +0 -1
- package/src/categories/configuration.js +0 -1782
- package/src/categories/configuration.js.map +0 -1
- package/src/categories/injection.d.ts +0 -8
- package/src/categories/injection.d.ts.map +0 -1
- package/src/categories/injection.js +0 -781
- package/src/categories/injection.js.map +0 -1
- package/src/categories/sensitive-paths.d.ts +0 -9
- package/src/categories/sensitive-paths.d.ts.map +0 -1
- package/src/categories/sensitive-paths.js +0 -1872
- package/src/categories/sensitive-paths.js.map +0 -1
- package/src/categories/ssrf.d.ts +0 -8
- package/src/categories/ssrf.d.ts.map +0 -1
- package/src/categories/ssrf.js +0 -258
- package/src/categories/ssrf.js.map +0 -1
- package/src/categories/xss.d.ts +0 -7
- package/src/categories/xss.d.ts.map +0 -1
- package/src/categories/xss.js +0 -340
- package/src/categories/xss.js.map +0 -1
- package/src/error-codes.d.ts +0 -280
- package/src/error-codes.d.ts.map +0 -1
- package/src/error-codes.js +0 -350
- package/src/error-codes.js.map +0 -1
- package/src/index.d.ts +0 -60
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -92
- package/src/index.js.map +0 -1
- package/src/types.d.ts +0 -88
- package/src/types.d.ts.map +0 -1
- package/src/types.js +0 -6
- package/src/types.js.map +0 -1
|
@@ -9,7 +9,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
9
9
|
// SQL INJECTION
|
|
10
10
|
// ========================================
|
|
11
11
|
[VulnerabilityCode.SQLI_ERROR_BASED]: {
|
|
12
|
-
id:
|
|
12
|
+
id: 300,
|
|
13
13
|
code: VulnerabilityCode.SQLI_ERROR_BASED,
|
|
14
14
|
title: 'SQL Injection - Error Based',
|
|
15
15
|
description: 'Error-based SQL injection vulnerability detected where database error messages are reflected in the application response, allowing attackers to extract sensitive data from the database by manipulating SQL queries and analyzing error output.',
|
|
@@ -31,7 +31,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
31
31
|
remediation: 'Use parameterized queries or prepared statements. Implement input validation and sanitization. Use stored procedures with parameterized inputs. Apply principle of least privilege to database accounts.',
|
|
32
32
|
},
|
|
33
33
|
[VulnerabilityCode.SQLI_BOOLEAN_BASED]: {
|
|
34
|
-
id:
|
|
34
|
+
id: 301,
|
|
35
35
|
code: VulnerabilityCode.SQLI_BOOLEAN_BASED,
|
|
36
36
|
title: 'SQL Injection - Boolean Based Blind',
|
|
37
37
|
description: 'Boolean-based blind SQL injection vulnerability where the application responds differently based on whether injected conditions evaluate to true or false, enabling attackers to infer database contents one bit at a time through systematic query manipulation.',
|
|
@@ -53,7 +53,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
53
53
|
remediation: 'Use parameterized queries or prepared statements. Implement consistent error handling that does not reveal query success/failure. Apply input validation and output encoding.',
|
|
54
54
|
},
|
|
55
55
|
[VulnerabilityCode.SQLI_TIME_BASED]: {
|
|
56
|
-
id:
|
|
56
|
+
id: 302,
|
|
57
57
|
code: VulnerabilityCode.SQLI_TIME_BASED,
|
|
58
58
|
title: 'SQL Injection - Time Based Blind',
|
|
59
59
|
description: 'Time-based blind SQL injection vulnerability where attackers can infer database contents by measuring response time differences caused by injected time delay functions like SLEEP() or WAITFOR, enabling complete database extraction through timing analysis.',
|
|
@@ -75,7 +75,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
75
75
|
remediation: 'Use parameterized queries or prepared statements. Implement query timeout limits. Apply input validation and sanitization. Monitor for abnormally slow queries.',
|
|
76
76
|
},
|
|
77
77
|
[VulnerabilityCode.SQLI_STACK_BASED]: {
|
|
78
|
-
id:
|
|
78
|
+
id: 303,
|
|
79
79
|
code: VulnerabilityCode.SQLI_STACK_BASED,
|
|
80
80
|
title: 'SQL Injection - Stacked Queries',
|
|
81
81
|
description: 'Critical stacked queries SQL injection vulnerability allowing attackers to execute multiple SQL statements in a single query, enabling destructive operations like DROP TABLE, INSERT into admin tables, or creating backdoor accounts with full database control.',
|
|
@@ -97,7 +97,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
97
97
|
remediation: 'Use parameterized queries exclusively. Disable multi-statement execution in database drivers. Implement strict input validation. Apply least privilege database permissions and prevent DDL execution.',
|
|
98
98
|
},
|
|
99
99
|
[VulnerabilityCode.SQLI_UNION_BASED]: {
|
|
100
|
-
id:
|
|
100
|
+
id: 304,
|
|
101
101
|
code: VulnerabilityCode.SQLI_UNION_BASED,
|
|
102
102
|
title: 'SQL Injection - UNION Based',
|
|
103
103
|
description: 'UNION-based SQL injection vulnerability allowing attackers to append additional SELECT queries using UNION operator, enabling direct extraction of data from other database tables including user credentials, personal information, and sensitive business data.',
|
|
@@ -122,7 +122,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
122
122
|
// COMMAND INJECTION
|
|
123
123
|
// ========================================
|
|
124
124
|
[VulnerabilityCode.CMDI_OOB_CONFIRMED]: {
|
|
125
|
-
id:
|
|
125
|
+
id: 305,
|
|
126
126
|
code: VulnerabilityCode.CMDI_OOB_CONFIRMED,
|
|
127
127
|
title: 'OS Command Injection - OOB Confirmed',
|
|
128
128
|
description: 'Critical OS command injection vulnerability confirmed through out-of-band callback detection, proving that attacker-controlled shell commands are being executed on the server operating system with full access to system resources and potential for complete server compromise.',
|
|
@@ -144,7 +144,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
144
144
|
remediation: 'Avoid system calls with user input entirely. Use language-specific APIs instead of shell commands. Implement strict input validation with allowlists. Run applications with minimal OS privileges in sandboxed environments.',
|
|
145
145
|
},
|
|
146
146
|
[VulnerabilityCode.CMDI_REFLECTED]: {
|
|
147
|
-
id:
|
|
147
|
+
id: 306,
|
|
148
148
|
code: VulnerabilityCode.CMDI_REFLECTED,
|
|
149
149
|
title: 'OS Command Injection - Reflected Output',
|
|
150
150
|
description: 'OS command injection vulnerability confirmed by command output being reflected in the application response, indicating that shell commands execute on the server and their results are returned to the attacker for data exfiltration and system reconnaissance.',
|
|
@@ -166,7 +166,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
166
166
|
remediation: 'Replace shell command execution with native language APIs. Implement strict input validation using allowlists. Escape shell metacharacters if commands are unavoidable. Sandbox application execution environments.',
|
|
167
167
|
},
|
|
168
168
|
[VulnerabilityCode.CMDI_TIME_BASED]: {
|
|
169
|
-
id:
|
|
169
|
+
id: 307,
|
|
170
170
|
code: VulnerabilityCode.CMDI_TIME_BASED,
|
|
171
171
|
title: 'OS Command Injection - Time Based',
|
|
172
172
|
description: 'Time-based OS command injection vulnerability detected through measurable response time delays caused by injected sleep or ping commands, strongly indicating that shell commands execute on the server even though output is not directly visible in responses.',
|
|
@@ -188,7 +188,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
188
188
|
remediation: 'Avoid executing system commands with user input. Use native APIs for required functionality. Implement strict input validation. Set command execution timeouts and monitor for anomalous delays.',
|
|
189
189
|
},
|
|
190
190
|
[VulnerabilityCode.CMDI_ERROR_BASED]: {
|
|
191
|
-
id:
|
|
191
|
+
id: 308,
|
|
192
192
|
code: VulnerabilityCode.CMDI_ERROR_BASED,
|
|
193
193
|
title: 'OS Command Injection - Error Based',
|
|
194
194
|
description: 'Potential OS command injection vulnerability indicated by distinctive error messages or system-level exceptions in the application response when malformed shell payloads are submitted, suggesting command execution attempts reach the operating system interpreter.',
|
|
@@ -213,7 +213,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
213
213
|
// SERVER-SIDE TEMPLATE INJECTION
|
|
214
214
|
// ========================================
|
|
215
215
|
[VulnerabilityCode.SSTI_JINJA2]: {
|
|
216
|
-
id:
|
|
216
|
+
id: 309,
|
|
217
217
|
code: VulnerabilityCode.SSTI_JINJA2,
|
|
218
218
|
title: 'Server-Side Template Injection - Jinja2',
|
|
219
219
|
description: 'Critical server-side template injection vulnerability in Jinja2 (Python/Flask) where user input is processed as template code, enabling attackers to execute arbitrary Python code on the server through template expressions like {{config}} or {{request.application.__globals__}}.',
|
|
@@ -235,7 +235,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
235
235
|
remediation: 'Never pass user input directly to template rendering. Use sandboxed template environments with restricted builtins. Prefer logic-less templates like Mustache. Implement strict input validation before template processing.',
|
|
236
236
|
},
|
|
237
237
|
[VulnerabilityCode.SSTI_TWIG]: {
|
|
238
|
-
id:
|
|
238
|
+
id: 310,
|
|
239
239
|
code: VulnerabilityCode.SSTI_TWIG,
|
|
240
240
|
title: 'Server-Side Template Injection - Twig',
|
|
241
241
|
description: 'Critical server-side template injection vulnerability in Twig (PHP/Symfony) where user input is evaluated as template expressions, allowing attackers to execute arbitrary PHP code on the server through filter chains and object method invocations within template syntax.',
|
|
@@ -257,7 +257,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
257
257
|
remediation: 'Avoid rendering user input as templates. Use Twig sandbox mode with whitelisted tags, filters, and functions. Upgrade to latest Twig version with security patches. Validate and sanitize all inputs.',
|
|
258
258
|
},
|
|
259
259
|
[VulnerabilityCode.SSTI_FREEMARKER]: {
|
|
260
|
-
id:
|
|
260
|
+
id: 311,
|
|
261
261
|
code: VulnerabilityCode.SSTI_FREEMARKER,
|
|
262
262
|
title: 'Server-Side Template Injection - FreeMarker',
|
|
263
263
|
description: 'Critical server-side template injection vulnerability in FreeMarker (Java) where user-controlled data is interpreted as template directives, enabling remote code execution through Java class instantiation and method invocation via FreeMarker built-in expressions.',
|
|
@@ -279,7 +279,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
279
279
|
remediation: 'Never interpolate user input into templates. Configure FreeMarker with restricted class resolver. Disable new() built-in and api built-ins. Use template configuration to restrict available classes.',
|
|
280
280
|
},
|
|
281
281
|
[VulnerabilityCode.SSTI_GENERIC]: {
|
|
282
|
-
id:
|
|
282
|
+
id: 312,
|
|
283
283
|
code: VulnerabilityCode.SSTI_GENERIC,
|
|
284
284
|
title: 'Server-Side Template Injection - Generic',
|
|
285
285
|
description: 'Server-side template injection vulnerability detected where user input is being processed by a template engine, potentially allowing code execution. The specific template engine could not be determined, but mathematical expression evaluation confirms server-side processing of user input.',
|
|
@@ -301,7 +301,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
301
301
|
remediation: 'Identify the template engine in use and apply engine-specific mitigations. Never pass user input to template rendering. Use sandboxed template environments. Implement strict input validation.',
|
|
302
302
|
},
|
|
303
303
|
[VulnerabilityCode.SSTI_VELOCITY]: {
|
|
304
|
-
id:
|
|
304
|
+
id: 313,
|
|
305
305
|
code: VulnerabilityCode.SSTI_VELOCITY,
|
|
306
306
|
title: 'Server-Side Template Injection - Velocity',
|
|
307
307
|
description: 'Critical server-side template injection vulnerability in Apache Velocity (Java) where user-controlled data is processed as template directives, enabling arbitrary Java code execution through Velocity Template Language expressions and class instantiation.',
|
|
@@ -323,7 +323,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
323
323
|
remediation: 'Never render user input as Velocity templates. Configure SecureUberspector to block dangerous method calls. Use Velocity tools with restricted capabilities. Apply input validation.',
|
|
324
324
|
},
|
|
325
325
|
[VulnerabilityCode.SSTI_THYMELEAF]: {
|
|
326
|
-
id:
|
|
326
|
+
id: 314,
|
|
327
327
|
code: VulnerabilityCode.SSTI_THYMELEAF,
|
|
328
328
|
title: 'Server-Side Template Injection - Thymeleaf',
|
|
329
329
|
description: 'Critical server-side template injection vulnerability in Thymeleaf (Spring/Java) where user input is processed as template expressions, enabling remote code execution through SpEL (Spring Expression Language) injection in template attributes.',
|
|
@@ -345,7 +345,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
345
345
|
remediation: 'Never concatenate user input into template expressions. Use th:text for displaying user data. Configure SpringTemplateEngine to restrict expression capabilities.',
|
|
346
346
|
},
|
|
347
347
|
[VulnerabilityCode.SSTI_ERB]: {
|
|
348
|
-
id:
|
|
348
|
+
id: 315,
|
|
349
349
|
code: VulnerabilityCode.SSTI_ERB,
|
|
350
350
|
title: 'Server-Side Template Injection - ERB',
|
|
351
351
|
description: 'Critical server-side template injection vulnerability in ERB (Ruby on Rails) where user input is embedded in ERB templates and executed as Ruby code, enabling arbitrary system command execution and complete server compromise through Ruby runtime access.',
|
|
@@ -367,7 +367,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
367
367
|
remediation: 'Never pass user input to ERB.new(). Use Rails html_safe only after proper sanitization. Prefer logic-less templates. Implement strict input validation before any rendering.',
|
|
368
368
|
},
|
|
369
369
|
[VulnerabilityCode.SSTI_EJS]: {
|
|
370
|
-
id:
|
|
370
|
+
id: 316,
|
|
371
371
|
code: VulnerabilityCode.SSTI_EJS,
|
|
372
372
|
title: 'Server-Side Template Injection - EJS',
|
|
373
373
|
description: 'Critical server-side template injection vulnerability in EJS (Node.js) where user-controlled data is processed as template code, allowing arbitrary JavaScript execution on the server through embedded JavaScript expressions and access to Node.js runtime.',
|
|
@@ -389,7 +389,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
389
389
|
remediation: 'Never pass user input directly to ejs.render(). Use ejs.escape() for user data. Pass data through template locals only. Consider switching to logic-less templates like Handlebars.',
|
|
390
390
|
},
|
|
391
391
|
[VulnerabilityCode.SSTI_PUG]: {
|
|
392
|
-
id:
|
|
392
|
+
id: 317,
|
|
393
393
|
code: VulnerabilityCode.SSTI_PUG,
|
|
394
394
|
title: 'Server-Side Template Injection - Pug/Jade',
|
|
395
395
|
description: 'Critical server-side template injection vulnerability in Pug (formerly Jade, Node.js) where user input is interpreted as template syntax, enabling arbitrary JavaScript code execution through Pug embedded code blocks and access to server-side Node.js environment.',
|
|
@@ -411,7 +411,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
411
411
|
remediation: 'Never compile user input as Pug templates. Pass user data only through template locals. Avoid pug.compile() with user-controlled template strings. Use static templates only.',
|
|
412
412
|
},
|
|
413
413
|
[VulnerabilityCode.SSTI_SMARTY]: {
|
|
414
|
-
id:
|
|
414
|
+
id: 318,
|
|
415
415
|
code: VulnerabilityCode.SSTI_SMARTY,
|
|
416
416
|
title: 'Server-Side Template Injection - Smarty',
|
|
417
417
|
description: 'Critical server-side template injection vulnerability in Smarty (PHP) where user input is processed as template code, enabling arbitrary PHP code execution through Smarty tags and function calls that can lead to complete server compromise.',
|
|
@@ -433,7 +433,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
433
433
|
remediation: 'Enable Smarty security_policy to restrict allowed tags and modifiers. Never pass user input to template compilation. Disable {php} tags. Use Smarty 3+ with security features enabled.',
|
|
434
434
|
},
|
|
435
435
|
[VulnerabilityCode.SSTI_MAKO]: {
|
|
436
|
-
id:
|
|
436
|
+
id: 319,
|
|
437
437
|
code: VulnerabilityCode.SSTI_MAKO,
|
|
438
438
|
title: 'Server-Side Template Injection - Mako',
|
|
439
439
|
description: 'Critical server-side template injection vulnerability in Mako (Python) where user-controlled data is executed as template code, enabling arbitrary Python code execution through Mako expressions and full access to the Python runtime environment.',
|
|
@@ -458,7 +458,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
458
458
|
// XXE (XML EXTERNAL ENTITY) - Additional
|
|
459
459
|
// ========================================
|
|
460
460
|
[VulnerabilityCode.XXE_ERROR_BASED]: {
|
|
461
|
-
id:
|
|
461
|
+
id: 320,
|
|
462
462
|
code: VulnerabilityCode.XXE_ERROR_BASED,
|
|
463
463
|
title: 'XML External Entity Injection - Error Based',
|
|
464
464
|
description: 'Error-based XXE vulnerability where file contents can be extracted through parser error messages by crafting malformed external entities that include file data in error output, enabling data exfiltration even when direct output is not reflected.',
|
|
@@ -480,7 +480,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
480
480
|
remediation: 'Disable DTD processing entirely in XML parser configuration. Suppress detailed error messages in production. Implement custom error handlers that do not expose file contents.',
|
|
481
481
|
},
|
|
482
482
|
[VulnerabilityCode.XXE_PARAMETER_ENTITY]: {
|
|
483
|
-
id:
|
|
483
|
+
id: 321,
|
|
484
484
|
code: VulnerabilityCode.XXE_PARAMETER_ENTITY,
|
|
485
485
|
title: 'XML External Entity Injection - Parameter Entity',
|
|
486
486
|
description: 'XXE vulnerability exploiting parameter entities in DTD declarations to exfiltrate data or perform SSRF attacks when regular external entities are blocked, by using percent-encoded entity references within the document type definition.',
|
|
@@ -505,7 +505,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
505
505
|
// LOCAL FILE INCLUSION - Additional
|
|
506
506
|
// ========================================
|
|
507
507
|
[VulnerabilityCode.LFI_FILTER_BYPASS]: {
|
|
508
|
-
id:
|
|
508
|
+
id: 322,
|
|
509
509
|
code: VulnerabilityCode.LFI_FILTER_BYPASS,
|
|
510
510
|
title: 'Local File Inclusion - Filter Bypass',
|
|
511
511
|
description: 'Local file inclusion vulnerability that bypasses input validation filters through encoding tricks (URL encoding, double encoding, null bytes), alternate path separators, or case manipulation to access files despite security controls.',
|
|
@@ -527,7 +527,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
527
527
|
remediation: 'Use canonicalization after decoding before validation. Implement allowlist of permitted files instead of blocklist. Validate resolved paths are within expected directories.',
|
|
528
528
|
},
|
|
529
529
|
[VulnerabilityCode.LFI_PROC_DISCLOSURE]: {
|
|
530
|
-
id:
|
|
530
|
+
id: 323,
|
|
531
531
|
code: VulnerabilityCode.LFI_PROC_DISCLOSURE,
|
|
532
532
|
title: 'Local File Inclusion - Process Information Disclosure',
|
|
533
533
|
description: 'LFI vulnerability enabling access to /proc filesystem on Linux systems, exposing process memory maps, environment variables with credentials, command line arguments, and other runtime information that can reveal secrets and aid further attacks.',
|
|
@@ -552,7 +552,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
552
552
|
// XXE (XML EXTERNAL ENTITY)
|
|
553
553
|
// ========================================
|
|
554
554
|
[VulnerabilityCode.XXE_CLASSIC]: {
|
|
555
|
-
id:
|
|
555
|
+
id: 324,
|
|
556
556
|
code: VulnerabilityCode.XXE_CLASSIC,
|
|
557
557
|
title: 'XML External Entity Injection - Classic',
|
|
558
558
|
description: 'Classic XXE vulnerability where external XML entities are processed by the parser, allowing attackers to read local files like /etc/passwd or application configuration files by defining external entities that reference file:// protocol URIs in the XML document type definition.',
|
|
@@ -574,7 +574,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
574
574
|
remediation: 'Disable DTD processing entirely. Disable external entity resolution in XML parser configuration. Use less complex data formats like JSON where possible. Validate and sanitize XML input.',
|
|
575
575
|
},
|
|
576
576
|
[VulnerabilityCode.XXE_BLIND]: {
|
|
577
|
-
id:
|
|
577
|
+
id: 325,
|
|
578
578
|
code: VulnerabilityCode.XXE_BLIND,
|
|
579
579
|
title: 'XML External Entity Injection - Blind',
|
|
580
580
|
description: 'Blind XXE vulnerability where external entities are processed but file contents are not directly returned in the response. Exploitation requires out-of-band techniques like error-based extraction or HTTP callbacks to exfiltrate data from the target server.',
|
|
@@ -596,7 +596,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
596
596
|
remediation: 'Disable DTD and external entity processing in XML parser. Block outbound network connections from XML processing servers. Use JSON instead of XML where possible.',
|
|
597
597
|
},
|
|
598
598
|
[VulnerabilityCode.XXE_OOB]: {
|
|
599
|
-
id:
|
|
599
|
+
id: 326,
|
|
600
600
|
code: VulnerabilityCode.XXE_OOB,
|
|
601
601
|
title: 'XML External Entity Injection - Out-of-Band',
|
|
602
602
|
description: 'Critical out-of-band XXE vulnerability confirmed through external HTTP/DNS callbacks, proving the XML parser fetches external resources. This enables data exfiltration through URL parameters and server-side request forgery attacks against internal network resources.',
|
|
@@ -622,7 +622,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
622
622
|
// LOCAL FILE INCLUSION
|
|
623
623
|
// ========================================
|
|
624
624
|
[VulnerabilityCode.LFI_PATH_TRAVERSAL]: {
|
|
625
|
-
id:
|
|
625
|
+
id: 327,
|
|
626
626
|
code: VulnerabilityCode.LFI_PATH_TRAVERSAL,
|
|
627
627
|
title: 'Local File Inclusion - Path Traversal',
|
|
628
628
|
description: 'Path traversal vulnerability allowing attackers to read arbitrary files on the server by manipulating file path parameters with directory traversal sequences like ../ to escape the intended directory and access sensitive system or application configuration files.',
|
|
@@ -645,7 +645,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
645
645
|
remediation: 'Validate all file path inputs against an allowlist of permitted files. Canonicalize paths and verify they remain within expected directories. Use indirect file references instead of direct paths.',
|
|
646
646
|
},
|
|
647
647
|
[VulnerabilityCode.LFI_SOURCE_DISCLOSURE]: {
|
|
648
|
-
id:
|
|
648
|
+
id: 328,
|
|
649
649
|
code: VulnerabilityCode.LFI_SOURCE_DISCLOSURE,
|
|
650
650
|
title: 'Local File Inclusion - Source Code Disclosure',
|
|
651
651
|
description: 'Critical source code disclosure vulnerability where application source files can be read through file inclusion, exposing proprietary code, hardcoded credentials, API keys, database connection strings, and security implementation details that facilitate further attacks.',
|
|
@@ -668,7 +668,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
668
668
|
remediation: 'Use allowlist validation for file access. Store source files outside web root. Implement proper access controls on file reading functionality. Remove any debug endpoints that read files.',
|
|
669
669
|
},
|
|
670
670
|
[VulnerabilityCode.LFI_WRAPPER_PROTOCOL]: {
|
|
671
|
-
id:
|
|
671
|
+
id: 329,
|
|
672
672
|
code: VulnerabilityCode.LFI_WRAPPER_PROTOCOL,
|
|
673
673
|
title: 'Local File Inclusion - PHP Wrapper Protocol',
|
|
674
674
|
description: 'PHP wrapper protocol exploitation where filter or data wrappers like php://filter or php://input can be used to read source files as base64, write arbitrary files, or achieve remote code execution through deserialization when phar:// wrapper is enabled.',
|
|
@@ -690,7 +690,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
690
690
|
remediation: 'Disable allow_url_include and allow_url_fopen in PHP configuration. Filter and validate all file path inputs. Block protocol wrappers in user input. Use allowlist for file access.',
|
|
691
691
|
},
|
|
692
692
|
[VulnerabilityCode.XPATH_AUTH_BYPASS]: {
|
|
693
|
-
id:
|
|
693
|
+
id: 330,
|
|
694
694
|
code: VulnerabilityCode.XPATH_AUTH_BYPASS,
|
|
695
695
|
title: 'XPath Injection - Authentication Bypass',
|
|
696
696
|
description: 'XPath injection vulnerability where crafted input manipulates XPath queries to bypass authentication or authorization checks, allowing attackers to log in as other users or access protected resources without valid credentials.',
|
|
@@ -712,7 +712,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
712
712
|
remediation: 'Use parameterized XPath queries or safe APIs that separate data from query logic. Validate and constrain user input for XPath contexts. Use allowlists and avoid dynamic XPath string concatenation.',
|
|
713
713
|
},
|
|
714
714
|
[VulnerabilityCode.XPATH_DATA_EXTRACTION]: {
|
|
715
|
-
id:
|
|
715
|
+
id: 331,
|
|
716
716
|
code: VulnerabilityCode.XPATH_DATA_EXTRACTION,
|
|
717
717
|
title: 'XPath Injection - Data Extraction',
|
|
718
718
|
description: 'XPath injection vulnerability that allows attackers to read or enumerate sensitive XML data by manipulating query predicates, leading to disclosure of user data, configuration, or credentials stored in XML-backed systems.',
|
|
@@ -734,7 +734,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
734
734
|
remediation: 'Use safe XPath APIs with variables/bind parameters. Apply strict input validation and encoding for XPath contexts. Restrict accessible XML data and apply least-privilege access controls.',
|
|
735
735
|
},
|
|
736
736
|
[VulnerabilityCode.XPATH_BLIND]: {
|
|
737
|
-
id:
|
|
737
|
+
id: 332,
|
|
738
738
|
code: VulnerabilityCode.XPATH_BLIND,
|
|
739
739
|
title: 'XPath Injection - Blind',
|
|
740
740
|
description: 'Blind XPath injection vulnerability where attackers infer query results through boolean or timing differences, enabling gradual extraction of sensitive XML data despite no direct response output.',
|
|
@@ -756,7 +756,7 @@ export const INJECTION_VULNERABILITIES = {
|
|
|
756
756
|
remediation: 'Use parameterized XPath queries and input validation. Normalize error and response behaviors to reduce side-channel differences. Apply rate limiting to limit inference attacks.',
|
|
757
757
|
},
|
|
758
758
|
[VulnerabilityCode.XPATH_ERROR_BASED]: {
|
|
759
|
-
id:
|
|
759
|
+
id: 333,
|
|
760
760
|
code: VulnerabilityCode.XPATH_ERROR_BASED,
|
|
761
761
|
title: 'XPath Injection - Error Based',
|
|
762
762
|
description: 'XPath injection vulnerability where malformed input triggers verbose error messages that reveal query structure or XML data, enabling attackers to craft precise XPath exploits or extract sensitive information.',
|