Skip to content

Map callback data to UUIDs stored in the database instead of plain responses #18

@CrsiX

Description

@CrsiX

This would prevent two types of attacks against the bot and its users, replay attacks and user forgery.

How to do it: Instead of assigning callback data in the current form (with all relevant data contained) to the keyboard callback buttons, there should only be a random UUID. The bot then receives a callback, replaces the UUID with the data from the database and forwards it. It also needs to instantly drop the UUID and the data from the database, because otherwise replay attacks would be possible. Then, those two attacks would be mitigated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions