CyberFurz / furryfediverse-site

https://furryfediverse.org
MIT License
11 stars 10 forks source link

Check instance is in database before reporting. #36

Closed craftxbox closed 1 year ago

craftxbox commented 1 year ago

I found this small problem, where the client's input for instance isn't verified to actually be listed on the site. This is a problem, as an attacker could put in a fake, randomized instance name and spam the database/bot with frivolous reports. I recommend adding some kind of check that the contact user exists aswell, Or a verification system similar to what's required for add, however, ultimately those would only be minor nuisances to an attacker. Tested locally to work as intended.