Skip to content

Accepting invalid URLS , when added in vendor account #34754

Closed

Description

@anisshhbatrra

Try to add some URL like this. , it should not accept and should throw relevant error-->

https://test.pay.bcregistry.gov.bc.ca/<script>alert('xss')</script>

https://test.pay.bcregistry.gov.bc.ca/callback🎉

Screenshot 2026-08-30 at 10.13.27 AM.png

Screenshot 2026-08-30 at 10.11.53 AM.png

Activity

  1. added
    Pay
    on Aug 30, 2026
  2. added
    bug
    on Aug 30, 2026
  3. self-assigned this
    on Sep 1, 2026
  4. anisshhbatrra commented on Sep 3, 2026

    @anisshhbatrra
    CollaboratorAuthor

    Tested in Test .This issue is fixed .

    Screenshot 2026-09-03 at 1.25.31 AM.png

    Screenshot 2026-09-03 at 1.26.08 AM.png

    Screenshot 2026-09-03 at 1.30.52 AM.png

    URL Validation — Test Results

    # Category URL Tested Expected Result
    1 XSS Script Tag https://test.pay.bcregistry.gov.bc.ca/<script>alert('xss')</script> Rejected ✅ Rejected
    2 Emoji in URL https://test.pay.bcregistry.gov.bc.ca/callback🎉 Rejected ✅ Rejected
    3 HTML Injection https://test.pay.bcregistry.gov.bc.ca/<img src=x onerror=alert(1)> Rejected ✅ Rejected
    4 JavaScript Protocol https://test.pay.bcregistry.gov.bc.ca/javascript:alert('xss') Rejected ✅ Rejected
    5 Script in Query Param https://test.pay.bcregistry.gov.bc.ca/callback?a=<script> Rejected ✅ Rejected
    6 SQL Injection https://test.pay.bcregistry.gov.bc.ca/callback'; DROP TABLE users;-- Rejected ✅ Rejected
    7 Unicode Characters https://test.pay.bcregistry.gov.bc.ca/callbàck©™ Rejected ✅ Rejected
    8 Spaces in URL https://test.pay.bcregistry.gov.bc.ca/call back Rejected ✅ Rejected
    9 Null Characters https://test.pay.bcregistry.gov.bc.ca/callback%00 Rejected ✅ Rejected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Paybug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions