BioKIC / Symbiota

The Symbiota Virtual Flora/Fauna project develops on-line tools to aid the generation, exploration and management of biodiversity data (collection specimens, observations, images, checklists, keys, etc.). See also: http://bdj.pensoft.net/articles.php?id=1114 and https://symbiota.org/. For documentation, please visit https://symbiota.org/docs
GNU General Public License v2.0
33 stars 49 forks source link

[3.1] -burpsuite-fix: do not add taxa to query if there are special characters or quotes #1436

Closed Atticus29 closed 2 weeks ago

Atticus29 commented 3 weeks ago

Description

This PR addresses the persistent sql injection vulnerability highlighted by burpsuite in collections/list.php. In addition to sanitizing with the existing getTaxaSearchTerm method, I also was more conservative this time by disqualifying the taxa search term entirely if it didn't match an expected regex pattern.

Pull Request Checklist:

Pre-Approval

Post-Approval

Thanks for contributing and keeping it clean!