Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.18
-
Fix Version/s: 4.7.28
-
Component/s: None
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
When using the REST API to upload attachments using the Attachment.create API, the "content" field gets escaped by 'CRM_Utils_API_HTMLInputCoder'. This can result in corrupt file attachments if they happen to have a '<' character in them (ex: with a JPG, malicious cat photo attached).
How to reproduce: c.f. attached python2 script.