Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HTTP API: add missing access verification for all API calls
  • Loading branch information
perexg committed Sep 12, 2014
1 parent 2c7cc8c commit 33a516b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api.c
Expand Up @@ -84,6 +84,9 @@ api_exec ( access_t *perm, const char *subsystem,
return ENOSYS; // TODO: is this really the right error code?
}

if (access_verify2(perm, ah->hook->ah_access))
return EPERM;

/* Extract method */
op = htsmsg_get_str(args, "method");
if (!op)
Expand Down

0 comments on commit 33a516b

Please sign in to comment.