@interlace/eslint-devkit 1.9.0 â 1.11.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/README.md +1 -1
- package/package.json +2 -2
- package/src/aria-definitions.js +1 -990
- package/src/ast/ast-utils.js +1 -133
- package/src/ast/index.js +1 -17
- package/src/ast-node-types.js +1 -174
- package/src/index.js +1 -43
- package/src/messaging/config.js +1 -98
- package/src/messaging/constants.js +1 -678
- package/src/messaging/formatters-ai.js +2 -176
- package/src/messaging/formatters-v2.js +10 -212
- package/src/messaging/formatters.js +3 -186
- package/src/messaging/index.js +1 -21
- package/src/messaging/types-v2.js +1 -2
- package/src/messaging/types.js +1 -2
- package/src/node/fs.js +1 -104
- package/src/node/index.js +1 -19
- package/src/node/os.js +1 -52
- package/src/node/path.js +1 -143
- package/src/resolver/dependency-analysis.js +1 -740
- package/src/resolver/index.js +1 -20
- package/src/resolver/resolver-adapter.js +1 -92
- package/src/resolver/resolver-detection.js +1 -189
- package/src/resolver/resolver.js +1 -206
- package/src/resolver.js +1 -17
- package/src/rule-creation/browser-escape-hatch-rule.js +1 -100
- package/src/rule-creation/hardcoded-credentials-rule.js +1 -143
- package/src/rule-creation/index.d.ts +2 -0
- package/src/rule-creation/index.js +1 -26
- package/src/rule-creation/mass-assignment-rule.js +1 -121
- package/src/rule-creation/message-source.d.ts +95 -0
- package/src/rule-creation/message-source.js +1 -0
- package/src/rule-creation/mock-context.js +1 -39
- package/src/rule-creation/raw-identifier-rule.js +1 -140
- package/src/rule-creation/require-tls-rule.js +1 -190
- package/src/rule-creation/rule-creator.js +1 -70
- package/src/rule-creation/sdk-api-key-rule.js +1 -121
- package/src/rule-creation/sql-injection-rule.js +1 -207
- package/src/rule-creation/system-prompt-injection-rule.d.ts +78 -0
- package/src/rule-creation/system-prompt-injection-rule.js +1 -0
- package/src/rule-creation/unscoped-mutation-rule.js +1 -234
- package/src/security/index.js +1 -17
- package/src/security/security-utils.js +1 -461
- package/src/types/index.js +1 -18
- package/src/types/meta-augmentation.js +1 -2
- package/src/types/type-utils.js +1 -222
|
@@ -1,678 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageIcons = exports.CWE_COMPLIANCE_MAPPING = exports.CWE_MAPPING = exports.OWASP_2021_TO_2025 = exports.OWASP_DETAILS = exports.OWASP_SERVERLESS_DETAILS = exports.OWASP_2021_DETAILS = exports.OWASP_2025_DETAILS = exports.CVSS_RANGES = void 0;
|
|
4
|
-
exports.severityToCVSS = severityToCVSS;
|
|
5
|
-
exports.CVSS_RANGES = {
|
|
6
|
-
CRITICAL: { min: 9.0, max: 10.0, label: '9.0-10.0' },
|
|
7
|
-
HIGH: { min: 7.0, max: 8.9, label: '7.0-8.9' },
|
|
8
|
-
MEDIUM: { min: 4.0, max: 6.9, label: '4.0-6.9' },
|
|
9
|
-
LOW: { min: 0.1, max: 3.9, label: '0.1-3.9' },
|
|
10
|
-
INFO: { min: 0.0, max: 0.0, label: '0.0' },
|
|
11
|
-
};
|
|
12
|
-
function severityToCVSS(severity) {
|
|
13
|
-
const range = exports.CVSS_RANGES[severity];
|
|
14
|
-
return Number(((range.min + range.max) / 2).toFixed(1));
|
|
15
|
-
}
|
|
16
|
-
exports.OWASP_2025_DETAILS = {
|
|
17
|
-
'A01:2025': {
|
|
18
|
-
name: 'Broken Access Control',
|
|
19
|
-
description: 'Access control enforces policy such that users cannot act outside their intended permissions',
|
|
20
|
-
link: 'https://owasp.org/Top10/A01_2021-Broken_Access_Control/',
|
|
21
|
-
fallbackLink: 'https://owasp.org/Top10/A01_2021-Broken_Access_Control/',
|
|
22
|
-
},
|
|
23
|
-
'A02:2025': {
|
|
24
|
-
name: 'Security Misconfiguration',
|
|
25
|
-
description: 'Missing security hardening, improperly configured permissions, default credentials',
|
|
26
|
-
link: 'https://owasp.org/Top10/A05_2021-Security_Misconfiguration/',
|
|
27
|
-
fallbackLink: 'https://owasp.org/Top10/A05_2021-Security_Misconfiguration/',
|
|
28
|
-
},
|
|
29
|
-
'A03:2025': {
|
|
30
|
-
name: 'Software Supply Chain Failures',
|
|
31
|
-
description: 'Vulnerabilities in dependencies, malicious packages, compromised CI/CD pipelines',
|
|
32
|
-
link: 'https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/',
|
|
33
|
-
fallbackLink: 'https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/',
|
|
34
|
-
},
|
|
35
|
-
'A04:2025': {
|
|
36
|
-
name: 'Cryptographic Failures',
|
|
37
|
-
description: 'Failures related to cryptography leading to sensitive data exposure',
|
|
38
|
-
link: 'https://owasp.org/Top10/A02_2021-Cryptographic_Failures/',
|
|
39
|
-
fallbackLink: 'https://owasp.org/Top10/A02_2021-Cryptographic_Failures/',
|
|
40
|
-
},
|
|
41
|
-
'A05:2025': {
|
|
42
|
-
name: 'Injection',
|
|
43
|
-
description: 'User-supplied data not validated, filtered, or sanitized by the application',
|
|
44
|
-
link: 'https://owasp.org/Top10/A03_2021-Injection/',
|
|
45
|
-
fallbackLink: 'https://owasp.org/Top10/A03_2021-Injection/',
|
|
46
|
-
},
|
|
47
|
-
'A06:2025': {
|
|
48
|
-
name: 'Insecure Design',
|
|
49
|
-
description: 'Missing or ineffective control design, distinct from implementation flaws',
|
|
50
|
-
link: 'https://owasp.org/Top10/A04_2021-Insecure_Design/',
|
|
51
|
-
fallbackLink: 'https://owasp.org/Top10/A04_2021-Insecure_Design/',
|
|
52
|
-
},
|
|
53
|
-
'A07:2025': {
|
|
54
|
-
name: 'Authentication Failures',
|
|
55
|
-
description: 'User identity, authentication, and session management weaknesses',
|
|
56
|
-
link: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/',
|
|
57
|
-
fallbackLink: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/',
|
|
58
|
-
},
|
|
59
|
-
'A08:2025': {
|
|
60
|
-
name: 'Software or Data Integrity Failures',
|
|
61
|
-
description: 'Code and infrastructure that does not protect against integrity violations',
|
|
62
|
-
link: 'https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/',
|
|
63
|
-
fallbackLink: 'https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/',
|
|
64
|
-
},
|
|
65
|
-
'A09:2025': {
|
|
66
|
-
name: 'Logging & Alerting Failures',
|
|
67
|
-
description: 'Insufficient logging, detection, monitoring, and active response',
|
|
68
|
-
link: 'https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/',
|
|
69
|
-
fallbackLink: 'https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/',
|
|
70
|
-
},
|
|
71
|
-
'A10:2025': {
|
|
72
|
-
name: 'Mishandling of Exceptional Conditions',
|
|
73
|
-
description: 'Improper error handling, uncaught exceptions, information leakage via errors',
|
|
74
|
-
link: 'https://owasp.org/Top10/A03_2021-Injection/',
|
|
75
|
-
fallbackLink: 'https://owasp.org/Top10/A03_2021-Injection/',
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
exports.OWASP_2021_DETAILS = {
|
|
79
|
-
'A01:2021': {
|
|
80
|
-
name: 'Broken Access Control',
|
|
81
|
-
description: 'Access control enforces policy such that users cannot act outside of their intended permissions',
|
|
82
|
-
link: 'https://owasp.org/Top10/A01_2021-Broken_Access_Control/',
|
|
83
|
-
},
|
|
84
|
-
'A02:2021': {
|
|
85
|
-
name: 'Cryptographic Failures',
|
|
86
|
-
description: 'Failures related to cryptography that lead to sensitive data exposure',
|
|
87
|
-
link: 'https://owasp.org/Top10/A02_2021-Cryptographic_Failures/',
|
|
88
|
-
},
|
|
89
|
-
'A03:2021': {
|
|
90
|
-
name: 'Injection',
|
|
91
|
-
description: 'User-supplied data is not validated, filtered, or sanitized by the application',
|
|
92
|
-
link: 'https://owasp.org/Top10/A03_2021-Injection/',
|
|
93
|
-
},
|
|
94
|
-
'A04:2021': {
|
|
95
|
-
name: 'Insecure Design',
|
|
96
|
-
description: 'Missing or ineffective control design, distinct from implementation flaws',
|
|
97
|
-
link: 'https://owasp.org/Top10/A04_2021-Insecure_Design/',
|
|
98
|
-
},
|
|
99
|
-
'A05:2021': {
|
|
100
|
-
name: 'Security Misconfiguration',
|
|
101
|
-
description: 'Missing security hardening or improperly configured permissions',
|
|
102
|
-
link: 'https://owasp.org/Top10/A05_2021-Security_Misconfiguration/',
|
|
103
|
-
},
|
|
104
|
-
'A06:2021': {
|
|
105
|
-
name: 'Vulnerable Components',
|
|
106
|
-
description: 'Components with known vulnerabilities that may undermine defenses',
|
|
107
|
-
link: 'https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/',
|
|
108
|
-
},
|
|
109
|
-
'A07:2021': {
|
|
110
|
-
name: 'Auth Failures',
|
|
111
|
-
description: 'Confirmation of user identity, authentication, and session management weaknesses',
|
|
112
|
-
link: 'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/',
|
|
113
|
-
},
|
|
114
|
-
'A08:2021': {
|
|
115
|
-
name: 'Data Integrity Failures',
|
|
116
|
-
description: 'Code and infrastructure that does not protect against integrity violations',
|
|
117
|
-
link: 'https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/',
|
|
118
|
-
},
|
|
119
|
-
'A09:2021': {
|
|
120
|
-
name: 'Logging Failures',
|
|
121
|
-
description: 'Insufficient logging, detection, monitoring, and active response',
|
|
122
|
-
link: 'https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/',
|
|
123
|
-
},
|
|
124
|
-
'A10:2021': {
|
|
125
|
-
name: 'SSRF',
|
|
126
|
-
description: 'Server-Side Request Forgery occurs when fetching a remote resource without validating URL',
|
|
127
|
-
link: 'https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/',
|
|
128
|
-
},
|
|
129
|
-
};
|
|
130
|
-
exports.OWASP_SERVERLESS_DETAILS = {
|
|
131
|
-
'SAS-1': {
|
|
132
|
-
name: 'Function Event Data Injection',
|
|
133
|
-
description: 'Injecting malicious input via event data sources (API Gateway, S3, DynamoDB, etc.)',
|
|
134
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
135
|
-
},
|
|
136
|
-
'SAS-2': {
|
|
137
|
-
name: 'Broken Authentication',
|
|
138
|
-
description: 'Weak or missing authentication in serverless functions and API endpoints',
|
|
139
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
140
|
-
},
|
|
141
|
-
'SAS-3': {
|
|
142
|
-
name: 'Insecure Serverless Deployment Configuration',
|
|
143
|
-
description: 'Misconfigured serverless settings exposing functions or data',
|
|
144
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
145
|
-
},
|
|
146
|
-
'SAS-4': {
|
|
147
|
-
name: 'Over-Privileged Function Permissions',
|
|
148
|
-
description: 'Functions with excessive IAM permissions beyond what is needed',
|
|
149
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
150
|
-
},
|
|
151
|
-
'SAS-5': {
|
|
152
|
-
name: 'Inadequate Function Monitoring and Logging',
|
|
153
|
-
description: 'Insufficient logging, monitoring, and alerting for serverless functions',
|
|
154
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
155
|
-
},
|
|
156
|
-
'SAS-6': {
|
|
157
|
-
name: 'Insecure Third-Party Dependencies',
|
|
158
|
-
description: 'Vulnerable or malicious packages in serverless function dependencies',
|
|
159
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
160
|
-
},
|
|
161
|
-
'SAS-7': {
|
|
162
|
-
name: 'Insecure Application Secrets Storage',
|
|
163
|
-
description: 'Hardcoded secrets or improper secret management in serverless environments',
|
|
164
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
165
|
-
},
|
|
166
|
-
'SAS-8': {
|
|
167
|
-
name: 'Denial of Service & Financial Resource Exhaustion',
|
|
168
|
-
description: 'Attacks causing function overload, timeout, or cost explosion',
|
|
169
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
170
|
-
},
|
|
171
|
-
'SAS-9': {
|
|
172
|
-
name: 'Serverless Business Logic Manipulation',
|
|
173
|
-
description: 'Exploiting business logic flaws in stateless serverless functions',
|
|
174
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
175
|
-
},
|
|
176
|
-
'SAS-10': {
|
|
177
|
-
name: 'Improper Exception Handling',
|
|
178
|
-
description: 'Error handling that leaks sensitive information or fails silently',
|
|
179
|
-
link: 'https://owasp.org/www-project-serverless-top-10/',
|
|
180
|
-
},
|
|
181
|
-
};
|
|
182
|
-
exports.OWASP_DETAILS = {
|
|
183
|
-
...exports.OWASP_2025_DETAILS,
|
|
184
|
-
...exports.OWASP_2021_DETAILS,
|
|
185
|
-
...exports.OWASP_SERVERLESS_DETAILS,
|
|
186
|
-
};
|
|
187
|
-
exports.OWASP_2021_TO_2025 = {
|
|
188
|
-
'A01:2021': 'A01:2025',
|
|
189
|
-
'A02:2021': 'A04:2025',
|
|
190
|
-
'A03:2021': 'A05:2025',
|
|
191
|
-
'A04:2021': 'A06:2025',
|
|
192
|
-
'A05:2021': 'A02:2025',
|
|
193
|
-
'A06:2021': 'A03:2025',
|
|
194
|
-
'A07:2021': 'A07:2025',
|
|
195
|
-
'A08:2021': 'A08:2025',
|
|
196
|
-
'A09:2021': 'A09:2025',
|
|
197
|
-
'A10:2021': 'A05:2025',
|
|
198
|
-
};
|
|
199
|
-
exports.CWE_MAPPING = {
|
|
200
|
-
'CWE-22': {
|
|
201
|
-
owasp: 'A01:2025',
|
|
202
|
-
cvss: 7.5,
|
|
203
|
-
severity: 'HIGH',
|
|
204
|
-
name: 'Path Traversal',
|
|
205
|
-
},
|
|
206
|
-
'CWE-269': {
|
|
207
|
-
owasp: 'A01:2025',
|
|
208
|
-
cvss: 8.8,
|
|
209
|
-
severity: 'HIGH',
|
|
210
|
-
name: 'Improper Privilege Management',
|
|
211
|
-
},
|
|
212
|
-
'CWE-284': {
|
|
213
|
-
owasp: 'A01:2025',
|
|
214
|
-
cvss: 7.5,
|
|
215
|
-
severity: 'HIGH',
|
|
216
|
-
name: 'Improper Access Control',
|
|
217
|
-
},
|
|
218
|
-
'CWE-352': {
|
|
219
|
-
owasp: 'A01:2025',
|
|
220
|
-
cvss: 8.8,
|
|
221
|
-
severity: 'HIGH',
|
|
222
|
-
name: 'Cross-Site Request Forgery (CSRF)',
|
|
223
|
-
},
|
|
224
|
-
'CWE-639': {
|
|
225
|
-
owasp: 'A01:2025',
|
|
226
|
-
cvss: 8.1,
|
|
227
|
-
severity: 'HIGH',
|
|
228
|
-
name: 'Insecure Direct Object Reference',
|
|
229
|
-
},
|
|
230
|
-
'CWE-862': {
|
|
231
|
-
owasp: 'A01:2025',
|
|
232
|
-
cvss: 8.1,
|
|
233
|
-
severity: 'HIGH',
|
|
234
|
-
name: 'Missing Authorization',
|
|
235
|
-
},
|
|
236
|
-
'CWE-863': {
|
|
237
|
-
owasp: 'A01:2025',
|
|
238
|
-
cvss: 8.1,
|
|
239
|
-
severity: 'HIGH',
|
|
240
|
-
name: 'Incorrect Authorization',
|
|
241
|
-
},
|
|
242
|
-
'CWE-915': {
|
|
243
|
-
owasp: 'A01:2025',
|
|
244
|
-
cvss: 9.8,
|
|
245
|
-
severity: 'CRITICAL',
|
|
246
|
-
name: 'Object Injection',
|
|
247
|
-
},
|
|
248
|
-
'CWE-942': {
|
|
249
|
-
owasp: 'A01:2025',
|
|
250
|
-
cvss: 7.5,
|
|
251
|
-
severity: 'HIGH',
|
|
252
|
-
name: 'CORS Misconfiguration',
|
|
253
|
-
},
|
|
254
|
-
'CWE-918': {
|
|
255
|
-
owasp: 'A01:2025',
|
|
256
|
-
cvss: 9.1,
|
|
257
|
-
severity: 'CRITICAL',
|
|
258
|
-
name: 'Server-Side Request Forgery (SSRF)',
|
|
259
|
-
},
|
|
260
|
-
'CWE-16': {
|
|
261
|
-
owasp: 'A02:2025',
|
|
262
|
-
cvss: 5.3,
|
|
263
|
-
severity: 'MEDIUM',
|
|
264
|
-
name: 'Configuration',
|
|
265
|
-
},
|
|
266
|
-
'CWE-209': {
|
|
267
|
-
owasp: 'A02:2025',
|
|
268
|
-
cvss: 5.3,
|
|
269
|
-
severity: 'MEDIUM',
|
|
270
|
-
name: 'Error Information Exposure',
|
|
271
|
-
},
|
|
272
|
-
'CWE-614': {
|
|
273
|
-
owasp: 'A02:2025',
|
|
274
|
-
cvss: 5.3,
|
|
275
|
-
severity: 'MEDIUM',
|
|
276
|
-
name: 'Sensitive Cookie in HTTPS without Secure',
|
|
277
|
-
},
|
|
278
|
-
'CWE-1004': {
|
|
279
|
-
owasp: 'A02:2025',
|
|
280
|
-
cvss: 5.3,
|
|
281
|
-
severity: 'MEDIUM',
|
|
282
|
-
name: 'Sensitive Cookie Without HttpOnly',
|
|
283
|
-
},
|
|
284
|
-
'CWE-1275': {
|
|
285
|
-
owasp: 'A02:2025',
|
|
286
|
-
cvss: 5.3,
|
|
287
|
-
severity: 'MEDIUM',
|
|
288
|
-
name: 'Sensitive Cookie with Improper SameSite',
|
|
289
|
-
},
|
|
290
|
-
'CWE-426': {
|
|
291
|
-
owasp: 'A03:2025',
|
|
292
|
-
cvss: 7.5,
|
|
293
|
-
severity: 'HIGH',
|
|
294
|
-
name: 'Untrusted Search Path',
|
|
295
|
-
},
|
|
296
|
-
'CWE-427': {
|
|
297
|
-
owasp: 'A03:2025',
|
|
298
|
-
cvss: 7.8,
|
|
299
|
-
severity: 'HIGH',
|
|
300
|
-
name: 'Uncontrolled Search Path Element',
|
|
301
|
-
},
|
|
302
|
-
'CWE-431': {
|
|
303
|
-
owasp: 'A03:2025',
|
|
304
|
-
cvss: 7.5,
|
|
305
|
-
severity: 'HIGH',
|
|
306
|
-
name: 'Missing Handler',
|
|
307
|
-
},
|
|
308
|
-
'CWE-829': {
|
|
309
|
-
owasp: 'A03:2025',
|
|
310
|
-
cvss: 7.5,
|
|
311
|
-
severity: 'HIGH',
|
|
312
|
-
name: 'Untrusted Control Sphere Inclusion',
|
|
313
|
-
},
|
|
314
|
-
'CWE-937': {
|
|
315
|
-
owasp: 'A03:2025',
|
|
316
|
-
cvss: 7.5,
|
|
317
|
-
severity: 'HIGH',
|
|
318
|
-
name: 'Using Components with Known Vulnerabilities',
|
|
319
|
-
},
|
|
320
|
-
'CWE-1035': {
|
|
321
|
-
owasp: 'A03:2025',
|
|
322
|
-
cvss: 7.5,
|
|
323
|
-
severity: 'HIGH',
|
|
324
|
-
name: 'Vulnerable Third-Party Component',
|
|
325
|
-
},
|
|
326
|
-
'CWE-1078': {
|
|
327
|
-
owasp: 'A03:2025',
|
|
328
|
-
cvss: 5.3,
|
|
329
|
-
severity: 'MEDIUM',
|
|
330
|
-
name: 'Deprecated API',
|
|
331
|
-
},
|
|
332
|
-
'CWE-1104': {
|
|
333
|
-
owasp: 'A03:2025',
|
|
334
|
-
cvss: 5.3,
|
|
335
|
-
severity: 'MEDIUM',
|
|
336
|
-
name: 'Unmaintainable Third-Party Components',
|
|
337
|
-
},
|
|
338
|
-
'CWE-327': {
|
|
339
|
-
owasp: 'A04:2025',
|
|
340
|
-
cvss: 7.5,
|
|
341
|
-
severity: 'HIGH',
|
|
342
|
-
name: 'Broken Cryptographic Algorithm',
|
|
343
|
-
},
|
|
344
|
-
'CWE-328': {
|
|
345
|
-
owasp: 'A04:2025',
|
|
346
|
-
cvss: 7.5,
|
|
347
|
-
severity: 'HIGH',
|
|
348
|
-
name: 'Reversible One-Way Hash',
|
|
349
|
-
},
|
|
350
|
-
'CWE-330': {
|
|
351
|
-
owasp: 'A04:2025',
|
|
352
|
-
cvss: 5.3,
|
|
353
|
-
severity: 'MEDIUM',
|
|
354
|
-
name: 'Insufficient Randomness',
|
|
355
|
-
},
|
|
356
|
-
'CWE-331': {
|
|
357
|
-
owasp: 'A04:2025',
|
|
358
|
-
cvss: 5.3,
|
|
359
|
-
severity: 'MEDIUM',
|
|
360
|
-
name: 'Insufficient Entropy',
|
|
361
|
-
},
|
|
362
|
-
'CWE-338': {
|
|
363
|
-
owasp: 'A04:2025',
|
|
364
|
-
cvss: 5.3,
|
|
365
|
-
severity: 'MEDIUM',
|
|
366
|
-
name: 'Weak PRNG',
|
|
367
|
-
},
|
|
368
|
-
'CWE-759': {
|
|
369
|
-
owasp: 'A04:2025',
|
|
370
|
-
cvss: 7.5,
|
|
371
|
-
severity: 'HIGH',
|
|
372
|
-
name: 'One-Way Hash without Salt',
|
|
373
|
-
},
|
|
374
|
-
'CWE-798': {
|
|
375
|
-
owasp: 'A04:2025',
|
|
376
|
-
cvss: 9.8,
|
|
377
|
-
severity: 'CRITICAL',
|
|
378
|
-
name: 'Hardcoded Credentials',
|
|
379
|
-
},
|
|
380
|
-
'CWE-326': {
|
|
381
|
-
owasp: 'A04:2025',
|
|
382
|
-
cvss: 5.9,
|
|
383
|
-
severity: 'MEDIUM',
|
|
384
|
-
name: 'Inadequate Encryption Strength',
|
|
385
|
-
},
|
|
386
|
-
'CWE-311': {
|
|
387
|
-
owasp: 'A04:2025',
|
|
388
|
-
cvss: 7.5,
|
|
389
|
-
severity: 'HIGH',
|
|
390
|
-
name: 'Missing Encryption of Sensitive Data',
|
|
391
|
-
},
|
|
392
|
-
'CWE-89': {
|
|
393
|
-
owasp: 'A05:2025',
|
|
394
|
-
cvss: 9.8,
|
|
395
|
-
severity: 'CRITICAL',
|
|
396
|
-
name: 'SQL Injection',
|
|
397
|
-
},
|
|
398
|
-
'CWE-78': {
|
|
399
|
-
owasp: 'A05:2025',
|
|
400
|
-
cvss: 9.8,
|
|
401
|
-
severity: 'CRITICAL',
|
|
402
|
-
name: 'OS Command Injection',
|
|
403
|
-
},
|
|
404
|
-
'CWE-79': {
|
|
405
|
-
owasp: 'A05:2025',
|
|
406
|
-
cvss: 6.1,
|
|
407
|
-
severity: 'MEDIUM',
|
|
408
|
-
name: 'Cross-site Scripting (XSS)',
|
|
409
|
-
},
|
|
410
|
-
'CWE-94': {
|
|
411
|
-
owasp: 'A05:2025',
|
|
412
|
-
cvss: 9.8,
|
|
413
|
-
severity: 'CRITICAL',
|
|
414
|
-
name: 'Code Injection',
|
|
415
|
-
},
|
|
416
|
-
'CWE-95': {
|
|
417
|
-
owasp: 'A05:2025',
|
|
418
|
-
cvss: 9.8,
|
|
419
|
-
severity: 'CRITICAL',
|
|
420
|
-
name: 'Eval Injection',
|
|
421
|
-
},
|
|
422
|
-
'CWE-917': {
|
|
423
|
-
owasp: 'A05:2025',
|
|
424
|
-
cvss: 9.8,
|
|
425
|
-
severity: 'CRITICAL',
|
|
426
|
-
name: 'Expression Language Injection',
|
|
427
|
-
},
|
|
428
|
-
'CWE-1321': {
|
|
429
|
-
owasp: 'A05:2025',
|
|
430
|
-
cvss: 9.8,
|
|
431
|
-
severity: 'CRITICAL',
|
|
432
|
-
name: 'Prototype Pollution',
|
|
433
|
-
},
|
|
434
|
-
'CWE-77': {
|
|
435
|
-
owasp: 'A05:2025',
|
|
436
|
-
cvss: 9.8,
|
|
437
|
-
severity: 'CRITICAL',
|
|
438
|
-
name: 'Command Injection',
|
|
439
|
-
},
|
|
440
|
-
'CWE-90': {
|
|
441
|
-
owasp: 'A05:2025',
|
|
442
|
-
cvss: 9.8,
|
|
443
|
-
severity: 'CRITICAL',
|
|
444
|
-
name: 'LDAP Injection',
|
|
445
|
-
},
|
|
446
|
-
'CWE-611': {
|
|
447
|
-
owasp: 'A05:2025',
|
|
448
|
-
cvss: 9.1,
|
|
449
|
-
severity: 'CRITICAL',
|
|
450
|
-
name: 'XXE (XML External Entity)',
|
|
451
|
-
},
|
|
452
|
-
'CWE-20': {
|
|
453
|
-
owasp: 'A06:2025',
|
|
454
|
-
cvss: 7.5,
|
|
455
|
-
severity: 'HIGH',
|
|
456
|
-
name: 'Improper Input Validation',
|
|
457
|
-
},
|
|
458
|
-
'CWE-400': {
|
|
459
|
-
owasp: 'A06:2025',
|
|
460
|
-
cvss: 7.5,
|
|
461
|
-
severity: 'HIGH',
|
|
462
|
-
name: 'Uncontrolled Resource Consumption (ReDoS)',
|
|
463
|
-
},
|
|
464
|
-
'CWE-407': {
|
|
465
|
-
owasp: 'A06:2025',
|
|
466
|
-
cvss: 5.3,
|
|
467
|
-
severity: 'MEDIUM',
|
|
468
|
-
name: 'Circular Dependencies',
|
|
469
|
-
},
|
|
470
|
-
'CWE-697': {
|
|
471
|
-
owasp: 'A06:2025',
|
|
472
|
-
cvss: 5.3,
|
|
473
|
-
severity: 'MEDIUM',
|
|
474
|
-
name: 'Incorrect Comparison',
|
|
475
|
-
},
|
|
476
|
-
'CWE-602': {
|
|
477
|
-
owasp: 'A06:2025',
|
|
478
|
-
cvss: 6.5,
|
|
479
|
-
severity: 'MEDIUM',
|
|
480
|
-
name: 'Client-Side Enforcement of Server-Side Security',
|
|
481
|
-
},
|
|
482
|
-
'CWE-656': {
|
|
483
|
-
owasp: 'A06:2025',
|
|
484
|
-
cvss: 5.3,
|
|
485
|
-
severity: 'MEDIUM',
|
|
486
|
-
name: 'Reliance on Security Through Obscurity',
|
|
487
|
-
},
|
|
488
|
-
'CWE-799': {
|
|
489
|
-
owasp: 'A06:2025',
|
|
490
|
-
cvss: 5.3,
|
|
491
|
-
severity: 'MEDIUM',
|
|
492
|
-
name: 'Improper Control of Interaction Frequency',
|
|
493
|
-
},
|
|
494
|
-
'CWE-287': {
|
|
495
|
-
owasp: 'A07:2025',
|
|
496
|
-
cvss: 9.8,
|
|
497
|
-
severity: 'CRITICAL',
|
|
498
|
-
name: 'Improper Authentication',
|
|
499
|
-
},
|
|
500
|
-
'CWE-306': {
|
|
501
|
-
owasp: 'A07:2025',
|
|
502
|
-
cvss: 9.8,
|
|
503
|
-
severity: 'CRITICAL',
|
|
504
|
-
name: 'Missing Authentication',
|
|
505
|
-
},
|
|
506
|
-
'CWE-307': {
|
|
507
|
-
owasp: 'A07:2025',
|
|
508
|
-
cvss: 7.5,
|
|
509
|
-
severity: 'HIGH',
|
|
510
|
-
name: 'Improper Restriction of Authentication Attempts',
|
|
511
|
-
},
|
|
512
|
-
'CWE-521': {
|
|
513
|
-
owasp: 'A07:2025',
|
|
514
|
-
cvss: 5.3,
|
|
515
|
-
severity: 'MEDIUM',
|
|
516
|
-
name: 'Weak Password Requirements',
|
|
517
|
-
},
|
|
518
|
-
'CWE-613': {
|
|
519
|
-
owasp: 'A07:2025',
|
|
520
|
-
cvss: 5.4,
|
|
521
|
-
severity: 'MEDIUM',
|
|
522
|
-
name: 'Insufficient Session Expiration',
|
|
523
|
-
},
|
|
524
|
-
'CWE-384': {
|
|
525
|
-
owasp: 'A07:2025',
|
|
526
|
-
cvss: 8.1,
|
|
527
|
-
severity: 'HIGH',
|
|
528
|
-
name: 'Session Fixation',
|
|
529
|
-
},
|
|
530
|
-
'CWE-620': {
|
|
531
|
-
owasp: 'A07:2025',
|
|
532
|
-
cvss: 6.8,
|
|
533
|
-
severity: 'MEDIUM',
|
|
534
|
-
name: 'Unverified Password Change',
|
|
535
|
-
},
|
|
536
|
-
'CWE-345': {
|
|
537
|
-
owasp: 'A08:2025',
|
|
538
|
-
cvss: 7.5,
|
|
539
|
-
severity: 'HIGH',
|
|
540
|
-
name: 'Insufficient Verification of Data Authenticity',
|
|
541
|
-
},
|
|
542
|
-
'CWE-502': {
|
|
543
|
-
owasp: 'A08:2025',
|
|
544
|
-
cvss: 9.8,
|
|
545
|
-
severity: 'CRITICAL',
|
|
546
|
-
name: 'Deserialization of Untrusted Data',
|
|
547
|
-
},
|
|
548
|
-
'CWE-494': {
|
|
549
|
-
owasp: 'A08:2025',
|
|
550
|
-
cvss: 8.1,
|
|
551
|
-
severity: 'HIGH',
|
|
552
|
-
name: 'Download of Code Without Integrity Check',
|
|
553
|
-
},
|
|
554
|
-
'CWE-353': {
|
|
555
|
-
owasp: 'A08:2025',
|
|
556
|
-
cvss: 6.5,
|
|
557
|
-
severity: 'MEDIUM',
|
|
558
|
-
name: 'Missing Support for Integrity Check',
|
|
559
|
-
},
|
|
560
|
-
'CWE-117': {
|
|
561
|
-
owasp: 'A09:2025',
|
|
562
|
-
cvss: 5.3,
|
|
563
|
-
severity: 'MEDIUM',
|
|
564
|
-
name: 'Improper Output Neutralization for Logs',
|
|
565
|
-
},
|
|
566
|
-
'CWE-223': {
|
|
567
|
-
owasp: 'A09:2025',
|
|
568
|
-
cvss: 5.3,
|
|
569
|
-
severity: 'MEDIUM',
|
|
570
|
-
name: 'Omission of Security-relevant Information',
|
|
571
|
-
},
|
|
572
|
-
'CWE-532': {
|
|
573
|
-
owasp: 'A09:2025',
|
|
574
|
-
cvss: 5.3,
|
|
575
|
-
severity: 'MEDIUM',
|
|
576
|
-
name: 'Log Information Exposure',
|
|
577
|
-
},
|
|
578
|
-
'CWE-778': {
|
|
579
|
-
owasp: 'A09:2025',
|
|
580
|
-
cvss: 5.3,
|
|
581
|
-
severity: 'MEDIUM',
|
|
582
|
-
name: 'Insufficient Logging',
|
|
583
|
-
},
|
|
584
|
-
'CWE-779': {
|
|
585
|
-
owasp: 'A09:2025',
|
|
586
|
-
cvss: 7.5,
|
|
587
|
-
severity: 'HIGH',
|
|
588
|
-
name: 'Logging of Excessive Data',
|
|
589
|
-
},
|
|
590
|
-
'CWE-252': {
|
|
591
|
-
owasp: 'A10:2025',
|
|
592
|
-
cvss: 5.3,
|
|
593
|
-
severity: 'MEDIUM',
|
|
594
|
-
name: 'Unchecked Return Value',
|
|
595
|
-
},
|
|
596
|
-
'CWE-248': {
|
|
597
|
-
owasp: 'A10:2025',
|
|
598
|
-
cvss: 7.5,
|
|
599
|
-
severity: 'HIGH',
|
|
600
|
-
name: 'Uncaught Exception',
|
|
601
|
-
},
|
|
602
|
-
'CWE-390': {
|
|
603
|
-
owasp: 'A10:2025',
|
|
604
|
-
cvss: 5.3,
|
|
605
|
-
severity: 'MEDIUM',
|
|
606
|
-
name: 'Detection of Error Condition Without Action',
|
|
607
|
-
},
|
|
608
|
-
'CWE-391': {
|
|
609
|
-
owasp: 'A10:2025',
|
|
610
|
-
cvss: 5.3,
|
|
611
|
-
severity: 'MEDIUM',
|
|
612
|
-
name: 'Unchecked Error Condition',
|
|
613
|
-
},
|
|
614
|
-
'CWE-392': {
|
|
615
|
-
owasp: 'A10:2025',
|
|
616
|
-
cvss: 7.5,
|
|
617
|
-
severity: 'HIGH',
|
|
618
|
-
name: 'Missing Report of Error Condition',
|
|
619
|
-
},
|
|
620
|
-
'CWE-397': {
|
|
621
|
-
owasp: 'A10:2025',
|
|
622
|
-
cvss: 5.3,
|
|
623
|
-
severity: 'MEDIUM',
|
|
624
|
-
name: 'Throwing Generic Exception',
|
|
625
|
-
},
|
|
626
|
-
'CWE-754': {
|
|
627
|
-
owasp: 'A10:2025',
|
|
628
|
-
cvss: 7.5,
|
|
629
|
-
severity: 'HIGH',
|
|
630
|
-
name: 'Improper Check for Unusual Conditions',
|
|
631
|
-
},
|
|
632
|
-
'CWE-755': {
|
|
633
|
-
owasp: 'A10:2025',
|
|
634
|
-
cvss: 7.5,
|
|
635
|
-
severity: 'HIGH',
|
|
636
|
-
name: 'Improper Handling of Exceptional Conditions',
|
|
637
|
-
},
|
|
638
|
-
};
|
|
639
|
-
exports.CWE_COMPLIANCE_MAPPING = {
|
|
640
|
-
'CWE-89': ['SOC2', 'PCI-DSS', 'HIPAA', 'ISO27001'],
|
|
641
|
-
'CWE-78': ['SOC2', 'PCI-DSS', 'ISO27001', 'NIST-CSF'],
|
|
642
|
-
'CWE-79': ['SOC2', 'PCI-DSS', 'GDPR', 'ISO27001'],
|
|
643
|
-
'CWE-94': ['SOC2', 'PCI-DSS', 'ISO27001'],
|
|
644
|
-
'CWE-95': ['SOC2', 'PCI-DSS', 'ISO27001'],
|
|
645
|
-
'CWE-22': ['SOC2', 'PCI-DSS', 'HIPAA', 'ISO27001'],
|
|
646
|
-
'CWE-269': ['SOC2', 'PCI-DSS', 'HIPAA', 'GDPR', 'ISO27001'],
|
|
647
|
-
'CWE-306': ['SOC2', 'PCI-DSS', 'HIPAA', 'GDPR', 'ISO27001', 'NIST-CSF'],
|
|
648
|
-
'CWE-862': ['SOC2', 'PCI-DSS', 'HIPAA', 'ISO27001'],
|
|
649
|
-
'CWE-915': ['SOC2', 'PCI-DSS', 'ISO27001'],
|
|
650
|
-
'CWE-327': ['PCI-DSS', 'HIPAA', 'ISO27001', 'NIST-CSF'],
|
|
651
|
-
'CWE-330': ['PCI-DSS', 'ISO27001'],
|
|
652
|
-
'CWE-798': ['SOC2', 'PCI-DSS', 'HIPAA', 'GDPR', 'ISO27001', 'NIST-CSF'],
|
|
653
|
-
'CWE-20': ['SOC2', 'PCI-DSS', 'HIPAA', 'GDPR', 'ISO27001'],
|
|
654
|
-
'CWE-200': ['GDPR', 'HIPAA', 'PCI-DSS', 'SOC2'],
|
|
655
|
-
'CWE-532': ['GDPR', 'HIPAA', 'PCI-DSS', 'SOC2'],
|
|
656
|
-
'CWE-778': ['SOC2', 'ISO27001', 'PCI-DSS', 'NIST-CSF'],
|
|
657
|
-
};
|
|
658
|
-
exports.MessageIcons = {
|
|
659
|
-
SECURITY: 'đ',
|
|
660
|
-
WARNING: 'â ī¸',
|
|
661
|
-
PACKAGE: 'đĻ',
|
|
662
|
-
DEVELOPMENT: 'đ§',
|
|
663
|
-
PERFORMANCE: 'âĄ',
|
|
664
|
-
ACCESSIBILITY: 'âŋ',
|
|
665
|
-
QUALITY: 'đ',
|
|
666
|
-
ARCHITECTURE: 'đī¸',
|
|
667
|
-
MIGRATION: 'đ',
|
|
668
|
-
DEPRECATION: 'â',
|
|
669
|
-
DOMAIN: 'đ',
|
|
670
|
-
COMPLEXITY: 'đ§ ',
|
|
671
|
-
DUPLICATION: 'đ',
|
|
672
|
-
INFO: 'âšī¸',
|
|
673
|
-
SUCCESS: 'â
',
|
|
674
|
-
STRATEGY: 'đ¯',
|
|
675
|
-
AUTH: 'đ',
|
|
676
|
-
DATA: 'đĄī¸',
|
|
677
|
-
COMPLIANCE: 'đ',
|
|
678
|
-
};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.MessageIcons=exports.CWE_COMPLIANCE_MAPPING=exports.CWE_MAPPING=exports.OWASP_2021_TO_2025=exports.OWASP_DETAILS=exports.OWASP_SERVERLESS_DETAILS=exports.OWASP_2021_DETAILS=exports.OWASP_2025_DETAILS=exports.CVSS_RANGES=void 0;exports.severityToCVSS=severityToCVSS;exports.CVSS_RANGES={CRITICAL:{min:9,max:10,label:"9.0-10.0"},HIGH:{min:7,max:8.9,label:"7.0-8.9"},MEDIUM:{min:4,max:6.9,label:"4.0-6.9"},LOW:{min:.1,max:3.9,label:"0.1-3.9"},INFO:{min:0,max:0,label:"0.0"}};function severityToCVSS(severity){const range=exports.CVSS_RANGES[severity];return Number(((range.min+range.max)/2).toFixed(1))}exports.OWASP_2025_DETAILS={"A01:2025":{name:"Broken Access Control",description:"Access control enforces policy such that users cannot act outside their intended permissions",link:"https://owasp.org/Top10/A01_2021-Broken_Access_Control/",fallbackLink:"https://owasp.org/Top10/A01_2021-Broken_Access_Control/"},"A02:2025":{name:"Security Misconfiguration",description:"Missing security hardening, improperly configured permissions, default credentials",link:"https://owasp.org/Top10/A05_2021-Security_Misconfiguration/",fallbackLink:"https://owasp.org/Top10/A05_2021-Security_Misconfiguration/"},"A03:2025":{name:"Software Supply Chain Failures",description:"Vulnerabilities in dependencies, malicious packages, compromised CI/CD pipelines",link:"https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/",fallbackLink:"https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/"},"A04:2025":{name:"Cryptographic Failures",description:"Failures related to cryptography leading to sensitive data exposure",link:"https://owasp.org/Top10/A02_2021-Cryptographic_Failures/",fallbackLink:"https://owasp.org/Top10/A02_2021-Cryptographic_Failures/"},"A05:2025":{name:"Injection",description:"User-supplied data not validated, filtered, or sanitized by the application",link:"https://owasp.org/Top10/A03_2021-Injection/",fallbackLink:"https://owasp.org/Top10/A03_2021-Injection/"},"A06:2025":{name:"Insecure Design",description:"Missing or ineffective control design, distinct from implementation flaws",link:"https://owasp.org/Top10/A04_2021-Insecure_Design/",fallbackLink:"https://owasp.org/Top10/A04_2021-Insecure_Design/"},"A07:2025":{name:"Authentication Failures",description:"User identity, authentication, and session management weaknesses",link:"https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/",fallbackLink:"https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/"},"A08:2025":{name:"Software or Data Integrity Failures",description:"Code and infrastructure that does not protect against integrity violations",link:"https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/",fallbackLink:"https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/"},"A09:2025":{name:"Logging & Alerting Failures",description:"Insufficient logging, detection, monitoring, and active response",link:"https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/",fallbackLink:"https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/"},"A10:2025":{name:"Mishandling of Exceptional Conditions",description:"Improper error handling, uncaught exceptions, information leakage via errors",link:"https://owasp.org/Top10/A03_2021-Injection/",fallbackLink:"https://owasp.org/Top10/A03_2021-Injection/"}};exports.OWASP_2021_DETAILS={"A01:2021":{name:"Broken Access Control",description:"Access control enforces policy such that users cannot act outside of their intended permissions",link:"https://owasp.org/Top10/A01_2021-Broken_Access_Control/"},"A02:2021":{name:"Cryptographic Failures",description:"Failures related to cryptography that lead to sensitive data exposure",link:"https://owasp.org/Top10/A02_2021-Cryptographic_Failures/"},"A03:2021":{name:"Injection",description:"User-supplied data is not validated, filtered, or sanitized by the application",link:"https://owasp.org/Top10/A03_2021-Injection/"},"A04:2021":{name:"Insecure Design",description:"Missing or ineffective control design, distinct from implementation flaws",link:"https://owasp.org/Top10/A04_2021-Insecure_Design/"},"A05:2021":{name:"Security Misconfiguration",description:"Missing security hardening or improperly configured permissions",link:"https://owasp.org/Top10/A05_2021-Security_Misconfiguration/"},"A06:2021":{name:"Vulnerable Components",description:"Components with known vulnerabilities that may undermine defenses",link:"https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/"},"A07:2021":{name:"Auth Failures",description:"Confirmation of user identity, authentication, and session management weaknesses",link:"https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/"},"A08:2021":{name:"Data Integrity Failures",description:"Code and infrastructure that does not protect against integrity violations",link:"https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/"},"A09:2021":{name:"Logging Failures",description:"Insufficient logging, detection, monitoring, and active response",link:"https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/"},"A10:2021":{name:"SSRF",description:"Server-Side Request Forgery occurs when fetching a remote resource without validating URL",link:"https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/"}};exports.OWASP_SERVERLESS_DETAILS={"SAS-1":{name:"Function Event Data Injection",description:"Injecting malicious input via event data sources (API Gateway, S3, DynamoDB, etc.)",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-2":{name:"Broken Authentication",description:"Weak or missing authentication in serverless functions and API endpoints",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-3":{name:"Insecure Serverless Deployment Configuration",description:"Misconfigured serverless settings exposing functions or data",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-4":{name:"Over-Privileged Function Permissions",description:"Functions with excessive IAM permissions beyond what is needed",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-5":{name:"Inadequate Function Monitoring and Logging",description:"Insufficient logging, monitoring, and alerting for serverless functions",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-6":{name:"Insecure Third-Party Dependencies",description:"Vulnerable or malicious packages in serverless function dependencies",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-7":{name:"Insecure Application Secrets Storage",description:"Hardcoded secrets or improper secret management in serverless environments",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-8":{name:"Denial of Service & Financial Resource Exhaustion",description:"Attacks causing function overload, timeout, or cost explosion",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-9":{name:"Serverless Business Logic Manipulation",description:"Exploiting business logic flaws in stateless serverless functions",link:"https://owasp.org/www-project-serverless-top-10/"},"SAS-10":{name:"Improper Exception Handling",description:"Error handling that leaks sensitive information or fails silently",link:"https://owasp.org/www-project-serverless-top-10/"}};exports.OWASP_DETAILS={...exports.OWASP_2025_DETAILS,...exports.OWASP_2021_DETAILS,...exports.OWASP_SERVERLESS_DETAILS};exports.OWASP_2021_TO_2025={"A01:2021":"A01:2025","A02:2021":"A04:2025","A03:2021":"A05:2025","A04:2021":"A06:2025","A05:2021":"A02:2025","A06:2021":"A03:2025","A07:2021":"A07:2025","A08:2021":"A08:2025","A09:2021":"A09:2025","A10:2021":"A05:2025"};exports.CWE_MAPPING={"CWE-22":{owasp:"A01:2025",cvss:7.5,severity:"HIGH",name:"Path Traversal"},"CWE-269":{owasp:"A01:2025",cvss:8.8,severity:"HIGH",name:"Improper Privilege Management"},"CWE-284":{owasp:"A01:2025",cvss:7.5,severity:"HIGH",name:"Improper Access Control"},"CWE-352":{owasp:"A01:2025",cvss:8.8,severity:"HIGH",name:"Cross-Site Request Forgery (CSRF)"},"CWE-639":{owasp:"A01:2025",cvss:8.1,severity:"HIGH",name:"Insecure Direct Object Reference"},"CWE-862":{owasp:"A01:2025",cvss:8.1,severity:"HIGH",name:"Missing Authorization"},"CWE-863":{owasp:"A01:2025",cvss:8.1,severity:"HIGH",name:"Incorrect Authorization"},"CWE-915":{owasp:"A01:2025",cvss:9.8,severity:"CRITICAL",name:"Object Injection"},"CWE-942":{owasp:"A01:2025",cvss:7.5,severity:"HIGH",name:"CORS Misconfiguration"},"CWE-918":{owasp:"A01:2025",cvss:9.1,severity:"CRITICAL",name:"Server-Side Request Forgery (SSRF)"},"CWE-16":{owasp:"A02:2025",cvss:5.3,severity:"MEDIUM",name:"Configuration"},"CWE-209":{owasp:"A02:2025",cvss:5.3,severity:"MEDIUM",name:"Error Information Exposure"},"CWE-614":{owasp:"A02:2025",cvss:5.3,severity:"MEDIUM",name:"Sensitive Cookie in HTTPS without Secure"},"CWE-1004":{owasp:"A02:2025",cvss:5.3,severity:"MEDIUM",name:"Sensitive Cookie Without HttpOnly"},"CWE-1275":{owasp:"A02:2025",cvss:5.3,severity:"MEDIUM",name:"Sensitive Cookie with Improper SameSite"},"CWE-426":{owasp:"A03:2025",cvss:7.5,severity:"HIGH",name:"Untrusted Search Path"},"CWE-427":{owasp:"A03:2025",cvss:7.8,severity:"HIGH",name:"Uncontrolled Search Path Element"},"CWE-431":{owasp:"A03:2025",cvss:7.5,severity:"HIGH",name:"Missing Handler"},"CWE-829":{owasp:"A03:2025",cvss:7.5,severity:"HIGH",name:"Untrusted Control Sphere Inclusion"},"CWE-937":{owasp:"A03:2025",cvss:7.5,severity:"HIGH",name:"Using Components with Known Vulnerabilities"},"CWE-1035":{owasp:"A03:2025",cvss:7.5,severity:"HIGH",name:"Vulnerable Third-Party Component"},"CWE-1078":{owasp:"A03:2025",cvss:5.3,severity:"MEDIUM",name:"Deprecated API"},"CWE-1104":{owasp:"A03:2025",cvss:5.3,severity:"MEDIUM",name:"Unmaintainable Third-Party Components"},"CWE-327":{owasp:"A04:2025",cvss:7.5,severity:"HIGH",name:"Broken Cryptographic Algorithm"},"CWE-328":{owasp:"A04:2025",cvss:7.5,severity:"HIGH",name:"Reversible One-Way Hash"},"CWE-330":{owasp:"A04:2025",cvss:5.3,severity:"MEDIUM",name:"Insufficient Randomness"},"CWE-331":{owasp:"A04:2025",cvss:5.3,severity:"MEDIUM",name:"Insufficient Entropy"},"CWE-338":{owasp:"A04:2025",cvss:5.3,severity:"MEDIUM",name:"Weak PRNG"},"CWE-759":{owasp:"A04:2025",cvss:7.5,severity:"HIGH",name:"One-Way Hash without Salt"},"CWE-798":{owasp:"A04:2025",cvss:9.8,severity:"CRITICAL",name:"Hardcoded Credentials"},"CWE-326":{owasp:"A04:2025",cvss:5.9,severity:"MEDIUM",name:"Inadequate Encryption Strength"},"CWE-311":{owasp:"A04:2025",cvss:7.5,severity:"HIGH",name:"Missing Encryption of Sensitive Data"},"CWE-89":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"SQL Injection"},"CWE-78":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"OS Command Injection"},"CWE-79":{owasp:"A05:2025",cvss:6.1,severity:"MEDIUM",name:"Cross-site Scripting (XSS)"},"CWE-94":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"Code Injection"},"CWE-95":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"Eval Injection"},"CWE-917":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"Expression Language Injection"},"CWE-1321":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"Prototype Pollution"},"CWE-77":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"Command Injection"},"CWE-90":{owasp:"A05:2025",cvss:9.8,severity:"CRITICAL",name:"LDAP Injection"},"CWE-611":{owasp:"A05:2025",cvss:9.1,severity:"CRITICAL",name:"XXE (XML External Entity)"},"CWE-20":{owasp:"A06:2025",cvss:7.5,severity:"HIGH",name:"Improper Input Validation"},"CWE-400":{owasp:"A06:2025",cvss:7.5,severity:"HIGH",name:"Uncontrolled Resource Consumption (ReDoS)"},"CWE-407":{owasp:"A06:2025",cvss:5.3,severity:"MEDIUM",name:"Circular Dependencies"},"CWE-697":{owasp:"A06:2025",cvss:5.3,severity:"MEDIUM",name:"Incorrect Comparison"},"CWE-602":{owasp:"A06:2025",cvss:6.5,severity:"MEDIUM",name:"Client-Side Enforcement of Server-Side Security"},"CWE-656":{owasp:"A06:2025",cvss:5.3,severity:"MEDIUM",name:"Reliance on Security Through Obscurity"},"CWE-799":{owasp:"A06:2025",cvss:5.3,severity:"MEDIUM",name:"Improper Control of Interaction Frequency"},"CWE-287":{owasp:"A07:2025",cvss:9.8,severity:"CRITICAL",name:"Improper Authentication"},"CWE-306":{owasp:"A07:2025",cvss:9.8,severity:"CRITICAL",name:"Missing Authentication"},"CWE-307":{owasp:"A07:2025",cvss:7.5,severity:"HIGH",name:"Improper Restriction of Authentication Attempts"},"CWE-521":{owasp:"A07:2025",cvss:5.3,severity:"MEDIUM",name:"Weak Password Requirements"},"CWE-613":{owasp:"A07:2025",cvss:5.4,severity:"MEDIUM",name:"Insufficient Session Expiration"},"CWE-384":{owasp:"A07:2025",cvss:8.1,severity:"HIGH",name:"Session Fixation"},"CWE-620":{owasp:"A07:2025",cvss:6.8,severity:"MEDIUM",name:"Unverified Password Change"},"CWE-345":{owasp:"A08:2025",cvss:7.5,severity:"HIGH",name:"Insufficient Verification of Data Authenticity"},"CWE-502":{owasp:"A08:2025",cvss:9.8,severity:"CRITICAL",name:"Deserialization of Untrusted Data"},"CWE-494":{owasp:"A08:2025",cvss:8.1,severity:"HIGH",name:"Download of Code Without Integrity Check"},"CWE-353":{owasp:"A08:2025",cvss:6.5,severity:"MEDIUM",name:"Missing Support for Integrity Check"},"CWE-117":{owasp:"A09:2025",cvss:5.3,severity:"MEDIUM",name:"Improper Output Neutralization for Logs"},"CWE-223":{owasp:"A09:2025",cvss:5.3,severity:"MEDIUM",name:"Omission of Security-relevant Information"},"CWE-532":{owasp:"A09:2025",cvss:5.3,severity:"MEDIUM",name:"Log Information Exposure"},"CWE-778":{owasp:"A09:2025",cvss:5.3,severity:"MEDIUM",name:"Insufficient Logging"},"CWE-779":{owasp:"A09:2025",cvss:7.5,severity:"HIGH",name:"Logging of Excessive Data"},"CWE-252":{owasp:"A10:2025",cvss:5.3,severity:"MEDIUM",name:"Unchecked Return Value"},"CWE-248":{owasp:"A10:2025",cvss:7.5,severity:"HIGH",name:"Uncaught Exception"},"CWE-390":{owasp:"A10:2025",cvss:5.3,severity:"MEDIUM",name:"Detection of Error Condition Without Action"},"CWE-391":{owasp:"A10:2025",cvss:5.3,severity:"MEDIUM",name:"Unchecked Error Condition"},"CWE-392":{owasp:"A10:2025",cvss:7.5,severity:"HIGH",name:"Missing Report of Error Condition"},"CWE-397":{owasp:"A10:2025",cvss:5.3,severity:"MEDIUM",name:"Throwing Generic Exception"},"CWE-754":{owasp:"A10:2025",cvss:7.5,severity:"HIGH",name:"Improper Check for Unusual Conditions"},"CWE-755":{owasp:"A10:2025",cvss:7.5,severity:"HIGH",name:"Improper Handling of Exceptional Conditions"}};exports.CWE_COMPLIANCE_MAPPING={"CWE-89":["SOC2","PCI-DSS","HIPAA","ISO27001"],"CWE-78":["SOC2","PCI-DSS","ISO27001","NIST-CSF"],"CWE-79":["SOC2","PCI-DSS","GDPR","ISO27001"],"CWE-94":["SOC2","PCI-DSS","ISO27001"],"CWE-95":["SOC2","PCI-DSS","ISO27001"],"CWE-22":["SOC2","PCI-DSS","HIPAA","ISO27001"],"CWE-269":["SOC2","PCI-DSS","HIPAA","GDPR","ISO27001"],"CWE-306":["SOC2","PCI-DSS","HIPAA","GDPR","ISO27001","NIST-CSF"],"CWE-862":["SOC2","PCI-DSS","HIPAA","ISO27001"],"CWE-915":["SOC2","PCI-DSS","ISO27001"],"CWE-327":["PCI-DSS","HIPAA","ISO27001","NIST-CSF"],"CWE-330":["PCI-DSS","ISO27001"],"CWE-798":["SOC2","PCI-DSS","HIPAA","GDPR","ISO27001","NIST-CSF"],"CWE-20":["SOC2","PCI-DSS","HIPAA","GDPR","ISO27001"],"CWE-200":["GDPR","HIPAA","PCI-DSS","SOC2"],"CWE-532":["GDPR","HIPAA","PCI-DSS","SOC2"],"CWE-778":["SOC2","ISO27001","PCI-DSS","NIST-CSF"]};exports.MessageIcons={SECURITY:"\u{1F512}",WARNING:"\u26A0\uFE0F",PACKAGE:"\u{1F4E6}",DEVELOPMENT:"\u{1F527}",PERFORMANCE:"\u26A1",ACCESSIBILITY:"\u267F",QUALITY:"\u{1F4DA}",ARCHITECTURE:"\u{1F3D7}\uFE0F",MIGRATION:"\u{1F504}",DEPRECATION:"\u274C",DOMAIN:"\u{1F4D6}",COMPLEXITY:"\u{1F9E0}",DUPLICATION:"\u{1F4CB}",INFO:"\u2139\uFE0F",SUCCESS:"\u2705",STRATEGY:"\u{1F3AF}",AUTH:"\u{1F510}",DATA:"\u{1F6E1}\uFE0F",COMPLIANCE:"\u{1F4CB}"};
|