Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

ability to blacklist certain types of files (eg. swf) #5

Closed
mattab opened this issue Dec 7, 2014 · 8 comments · Fixed by #10
Closed

ability to blacklist certain types of files (eg. swf) #5

mattab opened this issue Dec 7, 2014 · 8 comments · Fixed by #10

Comments

@mattab
Copy link
Member

mattab commented Dec 7, 2014

The goal of this issue is to add a blacklist of filetypes, that should not be mirrored in the github issues mirror. We could set the default blacklist to swf to exclude flash files from being synched.

Why? this is a security improvement. We received this report:

Hello.
I am to founded xss in subdomain of piwik.org
http://issues.piwik.org/attachments/1199/swelen_dateslider.swf?instance=alert(document.domain))}catch(e){}//
with best regards,
Sergey Markov

blacklisting some file types would help minimise such XSS vulnerability.

@Findus23
Copy link
Member

Is this still relevant? I haven't found a line that allows the mirroring of attachments. Am I overlooking something?

@tsteur
Copy link
Member

tsteur commented Sep 20, 2017

Unfortunately I don't really remember. I think this was actually when we migrated from Trac to Github and we synced/copied the attachments from Trac to make sure we still have them but I may be wrong.

@mattab
Copy link
Member Author

mattab commented Sep 20, 2017 via email

@Findus23
Copy link
Member

Hi, I understand why swf files should be excluded, but I don't know where the attachments come from as I haven't found a corresponding piece of code.

@tsteur
Copy link
Member

tsteur commented Sep 20, 2017

Yep I don't think we download any attachment. As far as I know we only kept some attachments from Trac but not 1000% sure :)

@Findus23
Copy link
Member

https://issues.piwik.org/1199 links to them so I guess I’ll just remove any link in the form of /attachments/*.swf

@mattab
Copy link
Member Author

mattab commented Sep 21, 2017

👍

Findus23 added a commit to Findus23/github-issues-mirror that referenced this issue Sep 21, 2017
@Findus23
Copy link
Member

Fixed in 6a3167d (#10)

Keep in mind that a XSS is still possible as long as people can upload random HTML files.

But as this only seems to display old files, that shouldn't be a problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants