Page MenuHomePhabricator

iNaturalist2Commons user script can't load image thumbnails from iNaturalist any more due to Content Security Policy
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

Dialog box pops up with all broken images.

What should have happened instead?:

It should load the thumbnail images from iNaturalist.

An example image URL for a thumbnail:
https://inaturalist-open-data.s3.amazonaws.com/photos/625336605/square.jpg

Example HTML loaded by the script:

<img data-photo-id="625336605" src="https://inaturalist-open-data.s3.amazonaws.com/photos/625336605/square.jpg" height="75" width="75">

Event Timeline

@Nosferattus - it sounds like allow-listing inaturalist-open-data.s3.amazonaws.com should resolve this issue?

sbassett changed the task status from Open to In Progress.Mar 17 2026, 5:11 PM
sbassett claimed this task.
sbassett triaged this task as Medium priority.
sbassett added a project: Security-Team.
sbassett moved this task from Incoming to In Progress on the Security-Team board.

@sbassett - I think so. All of iNaturalist's free license images are hosted on Amazon AWS. I'm not 100% sure they all use inaturalist-open-data.s3.amazonaws.com, but that seems to be the case from my spot checks. We can try just adding that to the allow-list and then follow-up if necessary.

Change #1255066 had a related patch set uploaded (by SBassett; author: Sportzpikachu):

[operations/puppet@production] Allow-list some additional domains to the currently enforcing CSP

https://gerrit.wikimedia.org/r/1255066

Change #1255066 merged by Ssingh:

[operations/puppet@production] Allow-list some additional domains to the currently enforcing CSP

https://gerrit.wikimedia.org/r/1255066

sbassett added a project: SecTeam-Processed.
sbassett moved this task from In Progress to Our Part Is Done on the Security-Team board.