Comments (5)
Hi, thanks for pointing this out. I noticed some other issues in the parser, like split data, so I reworked the parsing: 3a55ddd
This also fixes the OOB read and will parse your test case 'correctly' into no data output since it is not properly base64 encoded.
from libplist.
Hi
This has been assigned CVE-2017-5209.
from libplist.
Hi,
I created asdf.plist as @geekwish said:
emilio@tatooine$ cat asdf.plist
<data trn="1.0" 0//EN"
"http.DTDs/ProWerwwk.arsion="1.0">>
Now if I parse it with plist 1.12, I get:
emilio@tatooine$ /opt/libplist/bin/plistutil -i asdf.plist
Entity: line 1: parser error : error parsing attribute name
<data trn="1.0" 0//EN"
^
Entity: line 1: parser error : attributes construct error
<data trn="1.0" 0//EN"
^
Entity: line 1: parser error : Couldn't find end of Start Tag data line 1
<data trn="1.0" 0//EN"
^
Entity: line 1: parser error : Extra content at the end of the document
<data trn="1.0" 0//EN"
^
ERROR
With git commit 3a55ddd, with bbd3379 or with 6a44dfb I get instead:
emilio@tatooine$ /opt/libplist/bin/plistutil -i asdf.plist
bplist00@������
emilio@tatooine$
(with some unicode garbage after the "@")
Is that expected? That doesn't look right to me
from libplist.
Ping? I'd like to issue a security update downstream with a fix for this issue, but since I'm unable to reproduce it, I can't be sure if the fix is working on the backport.
Perhaps I have a bad test case? Can you add the correct one as an attachment?
Thanks
from libplist.
@epozuelo I am not sure what you are doing there, but if I try to convert the file
$ cat asdf.plist
<data trn="1.0" 0//EN"
"http.DTDs/ProWerwwk.arsion="1.0">>
(without enclosing <plist></plist>
tags)
the output since commit 3a55ddd is the following:
$ PLIST_XML_DEBUG=1 plistutil -i asdf.plist
libplist[xmlparser] ERROR: EOF while looking for closing tag
libplist[xmlparser] ERROR: Could not parse text content for 'data' node
ERROR: Failed to convert input file.
so the aforementioned issue is already fixed and the parsing fails. No idea why you actually seem to get binary plist output though.
from libplist.
Related Issues (20)
- Static building multiple undefined reference errors (since 91c0aa8) HOT 2
- Error while loading shared libraries HOT 2
- About the conversion of plist and Objective-C object HOT 3
- Assertion failed: ((node->children->count % 2) == 0), function node_to_xml, file xplist.c, line 365. HOT 1
- `make check -j16` fails due to .out file collisions HOT 3
- Failed to build
- ERROR: Input file is too small to contain valid plist data. HOT 1
- Cython crash when referencing objects after free() is called
- OOB access in `plist_from_memory` HOT 3
- Debian/Ubuntu `libplist-dev` package is outdated HOT 1
- Linker error: ld: archive member '/' not a mach-o file when trying to link libcnary.a HOT 1
- m4/ax_python_devel.m4 is outdated and fails with python 3.12 due to no longer present distutils
- Mistaken issue submission
- Cannot find python in your system PATH
- No autogen.sh in release file HOT 8
- FromBin parse bplist failed!
- ERROR: Input plist data is not compatible with output format.
- [Bug] plistutil cannot read from stdin - ERROR: Could not parse plist data (-3)
- About SIGSEGV (Address boundary error) when using C++ PList::Array
- I found a SEGV on unknown address crash by using AFL++
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 libplist.