The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to block attachment based on file type

Rishabh Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 17, 2021

During Assessment it was observed that application allows malicious files to be uploaded.

1. Malicious files can be uploaded with multiple extensions as file content is not validated.

2. Eicar virus file can be uploaded.

Impact :

A remote attacker could send a malicious file via POST request with a specially crafted filename, file content or mime type and execute arbitrary code to take complete control of the victim’s machine/server. The consequences of unrestricted file upload can vary, including complete system takeover, an overloaded file system or database, forwarding attacks to back-end systems, client-side attacks, or simple defacement.

Screenshot from 2021-08-18 11-57-14.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Brant Schroeder
Community Champion
September 7, 2021

@Rishabh Gupta Welcome to the Atlassian Community.

In the past, I have always handled this on the server.  Using the server to prevent certain files and scanning files that are uploaded.  I do not know of any way in the application to handle this and there is nothing in their documentation about it https://confluence.atlassian.com/adminjiraserver/configuring-file-attachments-938847851.html

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events