VEuPathDB / lib-jaxrs-container-core

Core library for VEuPathDB JaxRS container services
Apache License 2.0
0 stars 0 forks source link

Use absence from acctdb to check guests vs presence in userdb #36

Closed ryanrdoherty closed 1 year ago

ryanrdoherty commented 1 year ago

Rather than check userdb for presence of the guest user ID to validate guest Auth-Key values, we will check for the ID in acctdb. If present, we know it cannot be a guest because it is a registered user. This is to remove a specific userdb as a dependency on services that serve sites using different userdbs. The biggest hole here is that someone could send an ID that is higher than the current ID sequence; then later that ID could be assigned to a new registered user. If that happens, the new registered user will "inherit" (and steal) the spoof-guest's data. Serves them right for not using a legit guest ID.