Ticket #837 (closed Bug: invalid)
token_auth authentication bypass
| Reported by: | hass | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | Piwik 0.4.2 |
| Component: | Core | Keywords: | |
| Cc: | Sensitive: |
Description
If I call the flash applets with token_auth=anonymous they are shown nevertheless anonymous do not have view permissions.
If I do the same with JSON api call access is blocked.
Repro: 1. Log into Piwik website (now you are authenticated with your "adminstrator") 2. Request JSON data with token_auth=anonymous 3. You receive access denied to site 1 4. Request flash widget with token_auth=anonymous 5. Widget is shown, but shouldn't.
Additional to this it would be great if the Flash applet wouldn't return only the below if access has been denied. It's not very easy for users to understand what happened here.
Open Flash Chart JSON Parse Error [Syntax Error] Error at character 0, line 1: 0: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1
