You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "mridulpathak (via GitHub)" <gi...@apache.org> on 2026/10/05 06:03:19 UTC
[PR] Fixed: Enforce the allowed types of the XStream deserialization in UtilXml (OFBIZ-13647) [ofbiz-framework]
mridulpathak opened a new pull request, #2208:
URL: https://github.com/apache/ofbiz-framework/pull/2208
UtilXml configured XStream with allowTypes for a list of simple types and stated that all the other types are blocked. But allowTypes only adds permissions: without denying every type first, a type that is not in the list was still deserialized, unless it is on the default deny list of XStream. XmlSerializer.deserialize passes any XML whose root element is not ofbiz-ser to this deserialization, for example the context of a service called through a JMS message, the data of an entity synchronization, and the stored job and session data.
Every type is now denied first, and only the null value, the primitive types, the types that were listed, the collection interfaces that XStream uses for its short elements (list, set, map, sorted-set, sorted-map), and the types that the fields of a GenericValue need (the unmodifiable map wrapper and the marker of a null field) are allowed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixed: Enforce the allowed types of the XStream deserialization in UtilXml (OFBIZ-13647) [ofbiz-framework]
Posted by "mridulpathak (via GitHub)" <gi...@apache.org>.
mridulpathak merged PR #2208:
URL: https://github.com/apache/ofbiz-framework/pull/2208
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org