|
| 1 | +import moment from 'moment'; |
| 2 | + |
1 | 3 | import { SecurityReport, VulnerabilitySeverity } from '../types';
|
2 | 4 | import checkIfOldVulnerabilities from './checkIfOldVulnerabilities';
|
3 | 5 |
|
@@ -55,7 +57,7 @@ const tests: Test[] = [
|
55 | 57 | Description:
|
56 | 58 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
57 | 59 | FixedVersion: '0.3.8',
|
58 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 60 | + PublishedDate: moment().subtract(6, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
59 | 61 | SeveritySource: 'nvd',
|
60 | 62 | VulnerabilityID: 'CVE-2022-32149',
|
61 | 63 | InstalledVersion: 'v0.3.7',
|
@@ -104,7 +106,7 @@ const tests: Test[] = [
|
104 | 106 | Description:
|
105 | 107 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
106 | 108 | FixedVersion: '0.3.8',
|
107 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 109 | + PublishedDate: moment().subtract(6, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
108 | 110 | SeveritySource: 'nvd',
|
109 | 111 | VulnerabilityID: 'CVE-2022-32149',
|
110 | 112 | InstalledVersion: 'v0.3.7',
|
@@ -153,7 +155,7 @@ const tests: Test[] = [
|
153 | 155 | Description:
|
154 | 156 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
155 | 157 | FixedVersion: '0.3.8',
|
156 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 158 | + PublishedDate: moment().subtract(6, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
157 | 159 | SeveritySource: 'nvd',
|
158 | 160 | VulnerabilityID: 'CVE-2022-32149',
|
159 | 161 | InstalledVersion: 'v0.3.7',
|
@@ -211,7 +213,7 @@ const tests: Test[] = [
|
211 | 213 | Description:
|
212 | 214 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
213 | 215 | FixedVersion: '0.3.8',
|
214 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 216 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
215 | 217 | SeveritySource: 'nvd',
|
216 | 218 | VulnerabilityID: 'CVE-2022-32149',
|
217 | 219 | InstalledVersion: 'v0.3.7',
|
@@ -260,7 +262,7 @@ const tests: Test[] = [
|
260 | 262 | Description:
|
261 | 263 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
262 | 264 | FixedVersion: '0.3.8',
|
263 |
| - PublishedDate: '2020-10-14T15:15:00Z', |
| 265 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
264 | 266 | SeveritySource: 'nvd',
|
265 | 267 | VulnerabilityID: 'CVE-2022-32149',
|
266 | 268 | InstalledVersion: 'v0.3.7',
|
@@ -309,7 +311,7 @@ const tests: Test[] = [
|
309 | 311 | Description:
|
310 | 312 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
311 | 313 | FixedVersion: '0.3.8',
|
312 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 314 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
313 | 315 | SeveritySource: 'nvd',
|
314 | 316 | VulnerabilityID: 'CVE-2022-32149',
|
315 | 317 | InstalledVersion: 'v0.3.7',
|
@@ -367,7 +369,7 @@ const tests: Test[] = [
|
367 | 369 | Description:
|
368 | 370 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
369 | 371 | FixedVersion: '0.3.8',
|
370 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 372 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
371 | 373 | SeveritySource: 'nvd',
|
372 | 374 | VulnerabilityID: 'CVE-2022-32149',
|
373 | 375 | InstalledVersion: 'v0.3.7',
|
@@ -416,7 +418,7 @@ const tests: Test[] = [
|
416 | 418 | Description:
|
417 | 419 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
418 | 420 | FixedVersion: '0.3.8',
|
419 |
| - PublishedDate: '2020-10-14T15:15:00Z', |
| 421 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
420 | 422 | SeveritySource: 'nvd',
|
421 | 423 | VulnerabilityID: 'CVE-2022-32149',
|
422 | 424 | InstalledVersion: 'v0.3.7',
|
@@ -465,7 +467,7 @@ const tests: Test[] = [
|
465 | 467 | Description:
|
466 | 468 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
467 | 469 | FixedVersion: '0.3.8',
|
468 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 470 | + PublishedDate: moment().subtract(6, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
469 | 471 | SeveritySource: 'nvd',
|
470 | 472 | VulnerabilityID: 'CVE-2022-32149',
|
471 | 473 | InstalledVersion: 'v0.3.7',
|
@@ -523,7 +525,7 @@ const tests: Test[] = [
|
523 | 525 | Description:
|
524 | 526 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
525 | 527 | FixedVersion: '0.3.8',
|
526 |
| - PublishedDate: '2020-10-14T15:15:00Z', |
| 528 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
527 | 529 | SeveritySource: 'nvd',
|
528 | 530 | VulnerabilityID: 'CVE-2022-32149',
|
529 | 531 | InstalledVersion: 'v0.3.7',
|
@@ -572,7 +574,7 @@ const tests: Test[] = [
|
572 | 574 | Description:
|
573 | 575 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
574 | 576 | FixedVersion: '0.3.8',
|
575 |
| - PublishedDate: '2020-10-14T15:15:00Z', |
| 577 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
576 | 578 | SeveritySource: 'nvd',
|
577 | 579 | VulnerabilityID: 'CVE-2022-32149',
|
578 | 580 | InstalledVersion: 'v0.3.7',
|
@@ -621,7 +623,7 @@ const tests: Test[] = [
|
621 | 623 | Description:
|
622 | 624 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
623 | 625 | FixedVersion: '0.3.8',
|
624 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 626 | + PublishedDate: moment().subtract(6, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
625 | 627 | SeveritySource: 'nvd',
|
626 | 628 | VulnerabilityID: 'CVE-2022-32149',
|
627 | 629 | InstalledVersion: 'v0.3.7',
|
@@ -679,7 +681,7 @@ const tests: Test[] = [
|
679 | 681 | Description:
|
680 | 682 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
681 | 683 | FixedVersion: '0.3.8',
|
682 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 684 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
683 | 685 | SeveritySource: 'nvd',
|
684 | 686 | VulnerabilityID: 'CVE-2022-32149',
|
685 | 687 | InstalledVersion: 'v0.3.7',
|
@@ -728,7 +730,7 @@ const tests: Test[] = [
|
728 | 730 | Description:
|
729 | 731 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
730 | 732 | FixedVersion: '0.3.8',
|
731 |
| - PublishedDate: '2022-10-14T15:15:00Z', |
| 733 | + PublishedDate: moment().subtract(6, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
732 | 734 | SeveritySource: 'nvd',
|
733 | 735 | VulnerabilityID: 'CVE-2022-32149',
|
734 | 736 | InstalledVersion: 'v0.3.7',
|
@@ -777,7 +779,7 @@ const tests: Test[] = [
|
777 | 779 | Description:
|
778 | 780 | 'An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.',
|
779 | 781 | FixedVersion: '0.3.8',
|
780 |
| - PublishedDate: '2022-08-14T15:15:00Z', |
| 782 | + PublishedDate: moment().subtract(26, 'months').format('YYYY-MM-DDTHH:mm:ss[Z]'), |
781 | 783 | SeveritySource: 'nvd',
|
782 | 784 | VulnerabilityID: 'CVE-2022-32149',
|
783 | 785 | InstalledVersion: 'v0.3.7',
|
|
0 commit comments