Resolve #3524567 "Create cves for"
Compare changes
+ 14
− 1
@@ -108,6 +108,13 @@ function get_cwe_capec_from_advisory_url($advisory_url) {
@@ -108,6 +108,13 @@ function get_cwe_capec_from_advisory_url($advisory_url) {
// Template: 'https://www.drupal.org/sa-contrib-2025-ZZZ' => ['CWE' => '', 'CWE-DESC' => '', 'CAPEC' => '', 'CAPEC-DESC' => ''],
'https://www.drupal.org/sa-contrib-2025-056' => ['CWE' => '288', 'CWE-DESC' => 'Authentication Bypass Using an Alternate Path or Channel', 'CAPEC' => '115', 'CAPEC-DESC' => 'Authentication Bypass'],
'https://www.drupal.org/sa-contrib-2025-055' => ['CWE' => '862', 'CWE-DESC' => 'Missing Authorization', 'CAPEC' => '87', 'CAPEC-DESC' => 'Forceful Browsing'],
'https://www.drupal.org/sa-contrib-2025-054' => ['CWE' => '352', 'CWE-DESC' => 'Cross-Site Request Forgery (CSRF)', 'CAPEC' => '62', 'CAPEC-DESC' => 'Cross Site Request Forgery'],
@@ -249,7 +256,7 @@ function get_cwe_capec_from_advisory_url($advisory_url) {
@@ -249,7 +256,7 @@ function get_cwe_capec_from_advisory_url($advisory_url) {
$url = 'https://www.drupal.org/api-d7/node.json?type=sa&sort=created&direction=DESC&limit=6&page=0';
@@ -273,6 +280,12 @@ if (isset($jsonData['list']) && is_array($jsonData['list'])) {
@@ -273,6 +280,12 @@ if (isset($jsonData['list']) && is_array($jsonData['list'])) {