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"])deffb_webhook():
verification_code='I_AM_VERIFICIATION_CODE'verify_token=request.args.get('hub.verify_token')
ifverification_code==verify_token:
returnrequest.args.get('hub.challenge')

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

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