Avideo: Reflected XSS in the login page

Created on 22 May 2020  路  9Comments  路  Source: WWBN/AVideo

Login page is vulnerable to XSS user?redirectUri="><img%20src=x%20onerror=alert(1)>
Make sure to filter the redirectUri parameter.

bug

All 9 comments

Thanks again

This issue won't be fixed with your patch since an attacker can pass a valid URL with XSS vector in the parameter e.g http://www.google.com/?x="><img src=x onerror=alert(1)>
@DanielnetoDotCom

Check this vector:

https://demo.avideo.com/user?redirectUri=http://www.google.com/%22%3E%3Cscript%3Ealert(1)%3C/script%3E

@DanielnetoDotCom

Thanks, what about now?

Fixed

Just curious why not sanitize?

$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);

I did not know that.

but do you think it worth filter all post array? maybe add this only for some specific vars?

Depending on the expecting chars that are passed you can sanitize the whole post. It is worth the investigation. Now you are blacklisting instead of whitelisting.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akhilleusuggo picture akhilleusuggo  路  3Comments

syldri picture syldri  路  3Comments

gujarraju picture gujarraju  路  4Comments

moses268 picture moses268  路  3Comments

ganddser picture ganddser  路  3Comments