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

soaj1664 opened this issue May 3, 2014 · 0 comments

XSS is Possible in URL function #20

soaj1664 opened this issue May 3, 2014 · 0 comments


Copy link

@soaj1664 soaj1664 commented May 3, 2014


XSS is possible in URL function that is available here:

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

The vector is:

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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.