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

Comments

Projects
None yet
2 participants
@CCCCCrash

CCCCCrash commented Nov 22, 2018

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

This comment has been minimized.

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

This comment has been minimized.

CCCCCrash commented Nov 22, 2018

Yep.thank you for your reply.

@CCCCCrash CCCCCrash closed this Nov 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment