Skip to content

feat(connector): forbid SignAccepted/Rejected methods on untrusted connections #7047

@friofry

Description

@friofry

WebSocket clients may have access to sensitive the methods registered in connector/api.go.

The suggested solution is to protect client-facing methods with an 'isUntrustedConnection' check. Or register CommandRegistry in a separate api.

func (api *API) SignAccepted(ctx context.Context,args commands.SignAcceptedArgs) error {
  if IsUntrustedConnection(ctx) {
	return ...
   }
   return api.c.SignAccepted(args)
}

https://github.com/status-im/status-go/blob/develop/services/connector/api.go#L103

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions