Comments (5)
Can you please share an example on how the Billion-laugh attack can be launched against the XMLPropertyListParser? Because I cannot reproduce it.
All recommended factory settings as per the XXE prevention cheat sheet are already in place.
See #26.
A quick unit test confirmed that the current settings prevent the attack. The following exception is thrown by the parser:
[Fatal Error] :1:1: JAXP00010001: The parser has encountered more than "64000" entity expansions in this document; this is the limit imposed by the JDK
So what is the added benefit of XMLConstants.FEATURE_SECURE_PROCESSING
?
from dd-plist.
Can you try parsing with the xml content in below link https://en.wikipedia.org/wiki/Billion_laughs_attack#Code_example
from dd-plist.
That's exactly the XML I used for testing.
from dd-plist.
If you don't object, I would close this issue.
from dd-plist.
Yeah I see the test working fine.
I could notice if fSecureProcess property of DocumentBuilderFactory is true, the parser works fine.
This property wasn't true when I tried in my application, hence the attack was through.
Will check what is different
You shall close the issue. Thank you..!
from dd-plist.
Related Issues (20)
- PropertyListParser.determineType can only detect UTF-8 BOM HOT 3
- ASCIIPropertyListParser fails to read file that contains only comment
- add support for NSKeyedArchiver
- OutOfMemoryError parsing a small plist file HOT 4
- Various undeclared exceptions with fuzzed input HOT 2
- Various undeclared exceptions with fuzzed input - Part 2 HOT 2
- Cyclic references in binary property list cause StackOverflowError HOT 1
- Parsing of ASCII and XML property lists can cause IllegalArgumentException
- Illegal property list content should not cause exceptions other than PropertyListFormatException HOT 1
- NSDictionary with NULL as key value cause NullReferenceException in BinaryPropertyListParser HOT 1
- Adding NULL to an NSSet causes a NullReferenceException
- Adding a UID to a NSSet causes a ClassCastException
- NSArray to typed array with polymorphism HOT 2
- Binary property list parser does not check object offsets and lengths correctly
- NSNumber parser fails for "+infinity" and "-infinity" HOT 1
- Add support for Java Platform Module System (JPMS) HOT 1
- How to make PList 'date' format key start with uppercase HOT 1
- ParseException errorOffset from ASCIIPropertyListParser::parseQuotedString is offset by the length of the quoted string HOT 1
- Add location information to NSObject nodes HOT 4
- Add parent relationship to NSObject HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-plist.