Skip to content
Access control Disclosed report Beginner

Internal API endpoint is accesible for everyone

arnonymous Follow

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:

  1. Go to https://hack.whocoronavirus.org/internal/cron/refreshCaseStats

time curl -v https://hack.whocoronavirus.org/internal/cron/refreshCaseStats

curl-corona.png
curl-corona.png From the original on HackerOne

Show that it takes about 20 seconds, before a 200 OK response returns (with a single request).

Supporting Material/References:

https://github.com/WorldHealthOrganization/app/blob/master/server/appengine/src/main/webapp/WEB-INF/cron.yaml#L3

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.

The original report as published on HackerOne, by arnonymous. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by arnonymous

View all

2 more disclosed reports, best first.

More from WHO COVID-19 Mobile App

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.