<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/pyyaml-git.git/tests/lib/test_constructor.py, branch fix-represent-enum</title>
<subtitle>github.com: yaml/pyyaml.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/'/>
<entry>
<title>Reword comment</title>
<updated>2021-09-22T16:09:46+00:00</updated>
<author>
<name>Thom Smith</name>
<email>thom@thomthesmith.com</email>
</author>
<published>2021-09-22T16:09:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=568c7753a474e25805d938ade221a1e2663e41d6'/>
<id>568c7753a474e25805d938ade221a1e2663e41d6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move signal import to top and add explanatory comment</title>
<updated>2021-09-22T16:07:35+00:00</updated>
<author>
<name>Thom Smith</name>
<email>thom@thomthesmith.com</email>
</author>
<published>2021-09-22T16:07:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=4da9932c24ad7c124e301b6825dccc4ccd5b30bf'/>
<id>4da9932c24ad7c124e301b6825dccc4ccd5b30bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix issue with representing Enum types</title>
<updated>2021-09-22T15:51:14+00:00</updated>
<author>
<name>Thom Smith</name>
<email>thom@thomthesmith.com</email>
</author>
<published>2021-09-22T15:51:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=53177f0a6496770fad47c9333b01b423ade7eb73'/>
<id>53177f0a6496770fad47c9333b01b423ade7eb73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move code from lib3 to lib</title>
<updated>2021-09-22T13:52:05+00:00</updated>
<author>
<name>Thom Smith</name>
<email>thom@thomthesmith.com</email>
</author>
<published>2021-09-02T20:41:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=f20947ae251fd1a7f21ad40f9423fa4c0e167fd4'/>
<id>f20947ae251fd1a7f21ad40f9423fa4c0e167fd4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove 2.7 support</title>
<updated>2021-09-22T13:52:05+00:00</updated>
<author>
<name>Thom Smith</name>
<email>thom@thomthesmith.com</email>
</author>
<published>2021-09-02T20:34:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=dc0c4c1441b3ffca1343fd80790ebd846cbc1305'/>
<id>dc0c4c1441b3ffca1343fd80790ebd846cbc1305</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>constructor.timezone: __copy_ &amp; __deepcopy__</title>
<updated>2021-01-13T21:58:40+00:00</updated>
<author>
<name>Ovv</name>
<email>contact@ovv.dev</email>
</author>
<published>2020-04-06T09:14:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=ddf20330be1fae8813b8ce1789c48f244746d252'/>
<id>ddf20330be1fae8813b8ce1789c48f244746d252</id>
<content type='text'>
close #387
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
close #387
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevents arbitrary code execution during python/object/new constructor (#386)</title>
<updated>2020-03-17T18:09:55+00:00</updated>
<author>
<name>Riccardo Schirone</name>
<email>ret2libc@users.noreply.github.com</email>
</author>
<published>2020-03-17T18:09:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=5080ba513377b6355a0502104846ee804656f1e0'/>
<id>5080ba513377b6355a0502104846ee804656f1e0</id>
<content type='text'>
* Prevents arbitrary code execution during python/object/new constructor

In FullLoader python/object/new constructor, implemented by
construct_python_object_apply, has support for setting the state of a
deserialized instance through the set_python_instance_state method.
After setting the state, some operations are performed on the instance
to complete its initialization, however it is possible for an attacker
to set the instance' state in such a way that arbitrary code is executed
by the FullLoader.

This patch tries to block such attacks in FullLoader by preventing
set_python_instance_state from setting arbitrary properties. It
implements a blacklist that includes `extend` method (called by
construct_python_object_apply) and all special methods (e.g. __set__,
__setitem__, etc.).

Users who need special attributes being set in the state of a
deserialized object can still do it through the UnsafeLoader, which
however should not be used on untrusted input. Additionally, they can
subclass FullLoader and redefine `get_state_keys_blacklist()` to
extend/replace the list of blacklisted keys, passing the subclassed
loader to yaml.load.

* Make sure python/object/new constructor does not set some properties

* Add test to show how to subclass FullLoader with new blacklist</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Prevents arbitrary code execution during python/object/new constructor

In FullLoader python/object/new constructor, implemented by
construct_python_object_apply, has support for setting the state of a
deserialized instance through the set_python_instance_state method.
After setting the state, some operations are performed on the instance
to complete its initialization, however it is possible for an attacker
to set the instance' state in such a way that arbitrary code is executed
by the FullLoader.

This patch tries to block such attacks in FullLoader by preventing
set_python_instance_state from setting arbitrary properties. It
implements a blacklist that includes `extend` method (called by
construct_python_object_apply) and all special methods (e.g. __set__,
__setitem__, etc.).

Users who need special attributes being set in the state of a
deserialized object can still do it through the UnsafeLoader, which
however should not be used on untrusted input. Additionally, they can
subclass FullLoader and redefine `get_state_keys_blacklist()` to
extend/replace the list of blacklisted keys, passing the subclassed
loader to yaml.load.

* Make sure python/object/new constructor does not set some properties

* Add test to show how to subclass FullLoader with new blacklist</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for timezone (#363)</title>
<updated>2019-12-20T19:38:46+00:00</updated>
<author>
<name>Tina Müller (tinita)</name>
<email>cpan2@tinita.de</email>
</author>
<published>2019-12-16T20:31:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=4fcdcdbf604f7ce6ba190f6fd19b137df7b22b28'/>
<id>4fcdcdbf604f7ce6ba190f6fd19b137df7b22b28</id>
<content type='text'>
After #163, this adds some test data to check if the datetime objects
return the correct timezone</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After #163, this adds some test data to check if the datetime objects
return the correct timezone</pre>
</div>
</content>
</entry>
<entry>
<title>Fix handling of __slots__ (#161)</title>
<updated>2019-12-07T21:34:23+00:00</updated>
<author>
<name>Filip Salomonsson</name>
<email>filip.salomonsson@gmail.com</email>
</author>
<published>2019-12-07T21:34:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=5a0cfab86f6bccd5e5bec5c239ccfb94f8f0fe11'/>
<id>5a0cfab86f6bccd5e5bec5c239ccfb94f8f0fe11</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reverting https://github.com/yaml/pyyaml/pull/74</title>
<updated>2018-06-30T22:46:56+00:00</updated>
<author>
<name>Ingy döt Net</name>
<email>ingy@ingy.net</email>
</author>
<published>2018-06-29T17:04:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyyaml-git.git/commit/?id=ccc40f3e2ba384858c0d32263ac3e3a6626ab15e'/>
<id>ccc40f3e2ba384858c0d32263ac3e3a6626ab15e</id>
<content type='text'>
Revert "Make pyyaml safe by default."

This reverts commit bbcf95fa051fdba9bbf879332e2f7999b195cf95.
This reverts commit 7b68405c81db889f83c32846462b238ccae5be80.
This reverts commit 517e83e8058e9d6850ab432ef22d84c2ac2bba5a.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Revert "Make pyyaml safe by default."

This reverts commit bbcf95fa051fdba9bbf879332e2f7999b195cf95.
This reverts commit 7b68405c81db889f83c32846462b238ccae5be80.
This reverts commit 517e83e8058e9d6850ab432ef22d84c2ac2bba5a.
</pre>
</div>
</content>
</entry>
</feed>
