XSS in label parameter #20

Closed
opened 2025-11-20 04:15:08 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @arthurfiorette on GitHub (Apr 23, 2021).

Originally assigned to: @antonkomarev on GitHub.

I was creating my readme and i thought why not test if a script tag would work here? hahaha. It worked.

https://komarev.com/ghpvc/?username=arthurfiorette&style=flat-square&color=add8e6&label=%3Cscript%3Ealert(%27script%20with%20spaces!%27)%3C/script%3E

I haven't tested it much, but sometimes the server returns a 500 error, like when there is invalid html and so on. maybe it won't go anywhere, but it needs a check.

Originally created by @arthurfiorette on GitHub (Apr 23, 2021). Originally assigned to: @antonkomarev on GitHub. I was creating my readme and i thought why not test if a script tag would work here? hahaha. It worked. https://komarev.com/ghpvc/?username=arthurfiorette&style=flat-square&color=add8e6&label=%3Cscript%3Ealert(%27script%20with%20spaces!%27)%3C/script%3E I haven't tested it much, but sometimes the server returns a 500 error, like when there is invalid html and so on. maybe it won't go anywhere, but it needs a check.
saavagebueno added the bughelp wanted labels 2025-11-20 04:15:08 -05:00
Author
Owner

@antonkomarev commented on GitHub (Apr 23, 2021):

Thank you for the report @ArthurFiorette!
This image not meant to be called directly from komarev.com domain. GitHub proxies all images, JS scripts are not working. You could try to place it to your readme and click preview button to make sure. However, it would be good to fix this problem.
PRs are welcome.

@antonkomarev commented on GitHub (Apr 23, 2021): Thank you for the report @ArthurFiorette! This image not meant to be called directly from komarev.com domain. GitHub proxies all images, JS scripts are not working. You could try to place it to your readme and click preview button to make sure. However, it would be good to fix this problem. PRs are welcome.
Author
Owner

@antonkomarev commented on GitHub (Jun 1, 2021):

Resolved with #31 by @JaderH

@antonkomarev commented on GitHub (Jun 1, 2021): Resolved with #31 by @JaderH
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/github-profile-views-counter#20