I understand that the answer is probably that ideally, I would just have a secured api, but I want to understand the threats that exist as well as the defenses. And all of the articles I've read focus primarily on "they could come in and take your data," which just isn't my problem. Say for example:
- I have an api that I call from a separately hosted frontend
- This client-side app is authenticated with a separate service, giving me the user's email
- I use the email (or an obfuscated version of it) in a call to the api, to identify the user
- The api's database only holds the obfuscated email of the user, and the words that user has learned (this is a language-learning website).
My question is, What are the risks? I understand this single question is likely too vague to be particularly helpful, or even capable of being answered, so I would like clarify what I understand might be risks.
- I do not think hackers care about just raw email addresses, unconnected to other information, but this might be wrong.
- I realize that in theory, somebody could do something like make a million calls to my database for fun, and -- pretend they'd learned a lot of words, or create a lot of users, but I don't think they would, realistically, since I imagine this would take some effort, for no value.
- I obviously understand that if this database were to hold credit card information, or medical records or something, this would be unacceptable. But because it doesn't -- how real are the other risks?