GIScience / heigit-disaster-portal

GNU Affero General Public License v3.0
2 stars 1 forks source link

Improve API security #11

Open TheGreatRefrigerator opened 2 years ago

TheGreatRefrigerator commented 2 years ago

currently secrets (API keys) are stored as hashes with a simple insecure algorithm (md5).

Only basic security through a Bearer token in the Authorization Header is implemented, which can easily be misused, as they can be identified in the requests a browser app makes.

A proper user login using OAuth 2 (optionally using JWT as Bearer) should be applied to ensure secure and up to date access management.

TheGreatRefrigerator commented 2 years ago

Partly handled in https://github.com/GIScience/heigit-disaster-portal/commit/efaf0392b4e7fe9d9fb505cab1b5d8a4c8453522 which implements a more secure hashing algorithm (1-directional) to store secret hashes