Internal API endpoint is accesible for everyone
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 34 hours
- Disclosed after 35 hours
Summary:
It looks like the endpoint /internal/cron/refreshCaseStats as configured in [cron.yaml] (https://github.com/WorldHealthOrganization/app/blob/master/server/appengine/src/main/webapp/WEB-INF/cron.yaml#L3) is accesible for everyone. Since it is configured as a cronjob to run every 5 minutes and starts with internal, this should not be the case, and could worst case lead to DoS if it's a costly operation.
Steps To Reproduce:
time curl -v https://hack.whocoronavirus.org/internal/cron/refreshCaseStats

Show that it takes about 20 seconds, before a 200 OK response returns (with a single request).
Supporting Material/References:
Impact
Depending on the impact / performance of the action 'refresh case stats' this could lead to unnecesarry load on the backend (and charges) or even DoS.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity access control bug in hack.whocoronavirus.org. HackerOne made it public on 28 December 2020.
About Access control
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.