Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSS is Possible in URL function #20

Open
soaj1664 opened this issue May 3, 2014 · 0 comments
Open

XSS is Possible in URL function #20

soaj1664 opened this issue May 3, 2014 · 0 comments
Labels

Comments

@soaj1664
Copy link

soaj1664 commented May 3, 2014

Hi,

XSS is possible in URL function that is available here:

public static function url($data, $encode = false, $default = false){

The vector is:
javascript://www.xss.com?%0aalert%281%29

The regular expression you are using happily parse the above vector and attacker can execute JavaScript. The easiest fix would be instead of having a-z and A-Z in regular expression ... It should be something like http or https ...

@frozeman frozeman added the Bug label Jun 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants