Skip to content

Potential reflected XSS in the WebSub intent verification #26

Description

@randomstuff

I believe the WebSub intent verification of enginebai/PyMessager might be vulnerable to XSS because it reflects the hub.challenge parameter with a HTML content type:

@app.route(API_ROOT + FB_WEBHOOK, methods=["GET"])
def fb_webhook():
    verification_code = 'I_AM_VERIFICIATION_CODE'
    verify_token = request.args.get('hub.verify_token')
    if verification_code == verify_token:
        return request.args.get('hub.challenge')

Reference: https://www.w3.org/TR/websub/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions