URL check in bat_get_media.cc is not strict enough #3462
Labels
feature/rewards
priority/P2
A bad problem. We might uplift this to the next planned release.
QA Pass-Linux
QA Pass-macOS
QA Pass-Win64
QA/Yes
release-notes/exclude
sec-low
security
Milestone
https://github.com/brave/brave-core/blob/194e5db6b091490576ce8bd191004cd12dc5c7d6/vendor/bat-native-ledger/src/bat_get_media.cc#L46
i assume
url.find(".ttvnw.net/v1/segment/")
is trying to match subdomains of ttvnw.net, but it would actually match arbitrary domains like this:https://example.com/something.ttvnw.net/v1/segment/
because.
is valid in URL paths.cc @SergeyZhukovsky @jasonrsadler
The text was updated successfully, but these errors were encountered: