3 ms·
"This is not a big deal in Comments because our API is not public and user accounts are shared across all newsrooms." This was kinda scary to read. just becaus
by mooreds 5y ago
"This is not a big deal in Comments because our API is not public and user accounts are shared across all newsrooms."
This was kinda scary to read. just because an API isn't documented doesn't mean it isn't public! Broken Access Control is the top OWASP issue in 2021: https://owasp.org/Top10/ https://owasp.org/Top10/
Visiting the sample 'Comments' link and looking at the network console in Firefox revealed this call: https://cmmnts-api.i.bt.no/v1/publications/e24/article:e24:a7KW7A/comments?limit=2&offset=0&order=score https://cmmnts-api.i.bt.no/v1/publications/e24/article:e24:a... DESC&replies=ASC
Doesn't look like they protect (probably because it is called from javascript). That means that the malicious can nose around and create mischief.