Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions what-is-a-bug/libxml-cve-2023-28484/challenge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ RUN mkdir -p /challenge/bin;\
make -j$(nproc) check;\
make -j$(nproc) install;\
rm /challenge/bin/*;\
gcc -I/challenge/include/libxml2 -o /challenge/bin/parse_xsd /challenge/*.c -L/challenge/lib -lxml2;\
gcc -I/challenge/include/libxml2 -o /challenge/bin/parse_xsd /challenge/*.c -L/challenge/lib -Wl,-rpath=/challenge/lib -lxml2;\
chmod 6755 /challenge/bin/parse_xsd

COPY run.sh /challenge/run
RUN chmod 6755 /challenge/run

3 changes: 0 additions & 3 deletions what-is-a-bug/libxml-cve-2023-28484/challenge/run.sh

This file was deleted.

Binary file modified what-is-a-bug/libxml-cve-2023-28484/tests_private/test_crash.sh
Binary file not shown.
36 changes: 18 additions & 18 deletions what-is-a-bug/libxml-cve-2023-28484/tests_public/test_testcases.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/sh -e
cat > /tmp/pass.xsd << 'EOF'
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Hackers">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="Hello">
<xs:complexContent>
<xs:extension base="Hackers">
<xs:attribute name="bar" type="xs:int" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
EOF
/challenge/run /tmp/pass.xsd
#!/bin/sh -e
cat > /tmp/pass.xsd << 'EOF'
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Hackers">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="Hello">
<xs:complexContent>
<xs:extension base="Hackers">
<xs:attribute name="bar" type="xs:int" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
EOF

/challenge/bin/parse_xsd /tmp/pass.xsd