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

There is a XSS #392

Closed
CCCCCrash opened this issue Nov 22, 2018 · 2 comments
Closed

There is a XSS #392

CCCCCrash opened this issue Nov 22, 2018 · 2 comments

Comments

@CCCCCrash
Copy link

In the install/database.php

line 9:$cur_lang = $_REQUEST['lang'] ? $_REQUEST['lang'] :"zh";

$cur_langaccept the parameter from the $_REQUEST['lang'],then in the line:142

<input type="hidden" value="<?php echo $cur_lang;?>" id="lang">

put the parameter directly in the html

i reproduce the attack in the docker.

after set up the docker, just open the url:http://127.0.0.1:4999/install/database.php?lang=%22%3E%3Csvg/onload=alert(/lambdax/)%3E

then:

2

the source code:

image

remove install.lock if you want to reproduce it again

@star7th
Copy link
Owner

star7th commented Nov 22, 2018

It is ok .
Nobody will visit this url before install . And nobody can visit this url afer install

@CCCCCrash
Copy link
Author

Yep.thank you for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants