Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1) Take steps to guard against external XXE attacks (except, note tha…
…t <!DOCTYPE> cannot be disabled in XML plists). 2) Resolve the actual PLIST DTD from inside the JAR file itself, and prevent resolution of other external XML resources. 3) Make XMLPlistParser.getDocBuilder public
- Loading branch information
David Solin
authored and
David Solin
committed
Oct 5, 2016
1 parent
b9be0f4
commit 8c954e8
Showing
3 changed files
with
75 additions
and
48 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <!ENTITY % plistObject "(array | data | date | dict | real | integer | string | true | false )" > | ||
| <!ELEMENT plist %plistObject;> | ||
| <!ATTLIST plist version CDATA "1.0" > | ||
|
|
||
| <!-- Collections --> | ||
| <!ELEMENT array (%plistObject;)*> | ||
| <!ELEMENT dict (key, %plistObject;)*> | ||
| <!ELEMENT key (#PCDATA)> | ||
|
|
||
| <!--- Primitive types --> | ||
| <!ELEMENT string (#PCDATA)> | ||
| <!ELEMENT data (#PCDATA)> <!-- Contents interpreted as Base-64 encoded --> | ||
| <!ELEMENT date (#PCDATA)> <!-- Contents should conform to a subset of ISO 8601 (in particular, YYYY '-' MM '-' DD 'T' HH ':' MM ':' SS 'Z'. Smaller units may be omitted with a loss of precision) --> | ||
|
|
||
| <!-- Numerical primitives --> | ||
| <!ELEMENT true EMPTY> <!-- Boolean constant true --> | ||
| <!ELEMENT false EMPTY> <!-- Boolean constant false --> | ||
| <!ELEMENT real (#PCDATA)> <!-- Contents should represent a floating point number matching ("+" | "-")? d+ ("."d*)? ("E" ("+" | "-") d+)? where d is a digit 0-9. --> | ||
| <!ELEMENT integer (#PCDATA)> <!-- Contents should represent a (possibly signed) integer number in base 10 --> |
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