bcgov / MyGovBC-CAPTCHA-Service

A microservice for validating CAPTCHA and providing a token for non-robot assurance
Apache License 2.0
5 stars 2 forks source link

Secure /verify/jwt endpoint #12

Closed f-w closed 6 years ago

f-w commented 6 years ago

/verify/jwt is intended to be used by web app server. Without securing the endpoint, unauthorized web app server can use the captcha microservice for free even if the secret is not leaked. Disabling CORS alone is inadequate to prevent unauthorized usage as it can be easily compromised by a proxy. Secure using ip whitelist and/or bearer token.