Code Monkey home page Code Monkey logo

Comments (5)

nikias avatar nikias commented on May 29, 2024

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.

carnil avatar carnil commented on May 29, 2024

Hi

This has been assigned CVE-2017-5209.

from libplist.

epozuelo avatar epozuelo commented on May 29, 2024

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.

epozuelo avatar epozuelo commented on May 29, 2024

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.

nikias avatar nikias commented on May 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.