Skip to content

Commit

Permalink
chore: Adds 4 extra files for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
helio-frota authored and ctron committed Dec 2, 2024
1 parent 9a92ddd commit 80914b9
Showing 4 changed files with 854 additions and 0 deletions.
221 changes: 221 additions & 0 deletions etc/test-data/csaf/CVE-2024-34500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
{
"document": {
"aggregate_severity": {
"namespace": "https://access.redhat.com/security/updates/classification/",
"text": "Moderate"
},
"category": "csaf_vex",
"csaf_version": "2.0",
"distribution": {
"text": "Copyright © Red Hat, Inc. All rights reserved.",
"tlp": {
"label": "WHITE",
"url": "https://www.first.org/tlp/"
}
},
"lang": "en",
"notes": [
{
"category": "legal_disclaimer",
"text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
"title": "Terms of Use"
}
],
"publisher": {
"category": "vendor",
"contact_details": "https://access.redhat.com/security/team/contact/",
"issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
"name": "Red Hat Product Security",
"namespace": "https://www.redhat.com"
},
"references": [
{
"category": "self",
"summary": "Canonical URL",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-34500.json"
}
],
"title": "mediawiki: XSS through interface message in UnlinkedWikibase",
"tracking": {
"current_release_date": "2024-11-18T12:18:55+00:00",
"generator": {
"date": "2024-11-18T12:18:55+00:00",
"engine": {
"name": "Red Hat SDEngine",
"version": "4.2.1"
}
},
"id": "CVE-2024-34500",
"initial_release_date": "2024-05-05T00:00:00+00:00",
"revision_history": [
{
"date": "2024-05-05T00:00:00+00:00",
"number": "1",
"summary": "Initial version"
},
{
"date": "2024-05-06T04:24:11.327747+00:00",
"number": "2",
"summary": "Current version"
},
{
"date": "2024-11-18T12:18:55+00:00",
"number": "3",
"summary": "Last generated version"
}
],
"status": "final",
"version": "3"
}
},
"product_tree": {
"branches": [
{
"branches": [
{
"branches": [
{
"category": "product_name",
"name": "Red Hat OpenShift Container Platform 3.11",
"product": {
"name": "Red Hat OpenShift Container Platform 3.11",
"product_id": "red_hat_openshift_container_platform_3.11",
"product_identification_helper": {
"cpe": "cpe:/a:redhat:openshift:3.11"
}
}
}
],
"category": "product_family",
"name": "Red Hat OpenShift Container Platform 3.11"
},
{
"category": "product_version",
"name": "mediawiki",
"product": {
"name": "mediawiki",
"product_id": "mediawiki",
"product_identification_helper": {
"purl": "pkg:rpm/redhat/mediawiki?arch=src"
}
}
}
],
"category": "vendor",
"name": "Red Hat"
}
],
"relationships": [
{
"category": "default_component_of",
"full_product_name": {
"name": "mediawiki as a component of Red Hat OpenShift Container Platform 3.11",
"product_id": "red_hat_openshift_container_platform_3.11:mediawiki"
},
"product_reference": "mediawiki",
"relates_to_product_reference": "red_hat_openshift_container_platform_3.11"
}
]
},
"vulnerabilities": [
{
"cve": "CVE-2024-34500",
"cwe": {
"id": "CWE-79",
"name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
},
"discovery_date": "2024-05-06T00:00:00+00:00",
"ids": [
{
"system_name": "Red Hat Bugzilla ID",
"text": "2279233"
}
],
"notes": [
{
"category": "description",
"text": "An issue was discovered in the UnlinkedWikibase extension in MediaWiki before 1.39.6, 1.40.x before 1.40.2, and 1.41.x before 1.41.1. XSS can occur through an interface message. Error messages (in the $err var) are not escaped before being passed to Html::rawElement() in the getError() function in the Hooks class.",
"title": "Vulnerability description"
},
{
"category": "summary",
"text": "mediawiki: XSS through interface message in UnlinkedWikibase",
"title": "Vulnerability summary"
},
{
"category": "general",
"text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
"title": "CVSS score applicability"
}
],
"product_status": {
"known_affected": [
"red_hat_openshift_container_platform_3.11:mediawiki"
]
},
"references": [
{
"category": "self",
"summary": "Canonical URL",
"url": "https://access.redhat.com/security/cve/CVE-2024-34500"
},
{
"category": "external",
"summary": "RHBZ#2279233",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2279233"
},
{
"category": "external",
"summary": "https://www.cve.org/CVERecord?id=CVE-2024-34500",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-34500"
},
{
"category": "external",
"summary": "https://nvd.nist.gov/vuln/detail/CVE-2024-34500",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-34500"
}
],
"release_date": "2024-05-05T00:00:00+00:00",
"remediations": [
{
"category": "no_fix_planned",
"details": "Out of support scope",
"product_ids": [
"red_hat_openshift_container_platform_3.11:mediawiki"
]
}
],
"scores": [
{
"cvss_v3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
"version": "3.1"
},
"products": [
"red_hat_openshift_container_platform_3.11:mediawiki"
]
}
],
"threats": [
{
"category": "impact",
"details": "Moderate",
"product_ids": [
"red_hat_openshift_container_platform_3.11:mediawiki"
]
}
],
"title": "mediawiki: XSS through interface message in UnlinkedWikibase"
}
]
}
Loading

0 comments on commit 80914b9

Please sign in to comment.