You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Eugene (Jira)" <ji...@apache.org> on 2022/11/03 09:39:00 UTC

[jira] [Updated] (CXF-8783) How to set "attachment-max-count" property in Apache CXF?

     [ https://issues.apache.org/jira/browse/CXF-8783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene updated CXF-8783:
------------------------
    Issue Type: Bug  (was: Task)

> How to set "attachment-max-count" property in Apache CXF?
> ---------------------------------------------------------
>
>                 Key: CXF-8783
>                 URL: https://issues.apache.org/jira/browse/CXF-8783
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Eugene
>            Priority: Blocker
>
> Apache CXF before 3.3.4 and 3.2.11 does not restrict the number of message attachments present in a given message. This leaves open the possibility of a denial of service type attack, where a malicious user crafts a message containing a very large number of message attachments. From the 3.3.4 and 3.2.11 releases, a default limit of 50 message attachments is enforced. This is configurable via the message property "{*}attachment-max-count{*}".
> So, how I can set this property? Via using XML config or command-line argument?
> I checked official docs and I know that I can set this property via XML config. But have no idea how to do



--
This message was sent by Atlassian Jira
(v8.20.10#820010)