HomeGRNET

security: Guard against accessing other user tokens

Authored by ctrochalakis on Mar 5 2017, 12:50 PM.

Description

security: Guard against accessing other user tokens

This should be an admin-only action.

Mitigation:

Existing tokens need to be revoked.

The following command under WebDNS root outputs the set of users that
have enabled API tokens:

rails runner "User.where.not(token: '').each { |u| p [u.id, u.email, Rails.application.routes.url_helpers.token_user_path(u)] }"

Details

Committed
ctrochalakisMar 6 2017, 1:20 PM
Pushed
ctrochalakisMar 6 2017, 1:21 PM
Parents
rWEBDNS768822927c9e: Include author in notifications
Branches
Unknown
Tags
Unknown