[Medium] Inconsistent Authentication in services.list #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
The
handleMyceliumServicesListmethod ininternal/rpc/services.goreturns services scoped only to the authenticated user's public key. It does not provide a path for administrators to list services for other users, unlikeservices.getorservices.update.Impact
Remediation
Update the list handler to accept an optional
userPubKeyparameter. If provided by an administrator, return services for that specific user.Files Affected
internal/rpc/services.gowe can instead add new methods for admins only (
admin.get,admin.update, etc...)