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

Drawgantt cross-scripting security issue #165

Open
matthieu637 opened this issue Apr 11, 2019 · 3 comments
Open

Drawgantt cross-scripting security issue #165

matthieu637 opened this issue Apr 11, 2019 · 3 comments
Assignees

Comments

@matthieu637
Copy link

Hello,
The IT team of my university informed us that there is a problem on the following page:
drawgantt.php?start=1552960201&stop=1553219401&filter=all clusters&timezone=Asia/Shangai&resource_base=cpuset";prompt(23206)//&scale=10

I changed our firewall rules but it might also interest you (we are using the version 2.5.8~rc8-1.).

@npf npf self-assigned this Apr 15, 2019
@npf
Copy link
Contributor

npf commented Apr 15, 2019

Hello Matthieu,
Did you success to demonstrate the exploit ?

@matthieu637
Copy link
Author

matthieu637 commented Apr 16, 2019

Hello,
In the link I sent the JS only prompt 23206. I guess it's enough to demonstrate the exploit.
The server isn't directly targeted by this kind of exploit but users are (and ultimately the server can be in danger if the target is an admin).

For instance, a hacker could send the following link (https://intranet.grid5000.fr/oar/Nancy/drawgantt-svg/drawgantt.php?start=1552960201&stop=1553219401&filter=all%20clusters&timezone=Asia/Shangai&resource_base=cpuset%22;prompt(23206)//&scale=10) to a user of grid5000 with a malicious JS script that ask for password and upload it somewhere.
The victim will see the "https://intranet.grid5000.fr/" and could think "ok it's safe", but it's not.

@npf
Copy link
Contributor

npf commented Apr 19, 2019

Thanks, Matthieu.
(apparently I misread the url you proposed above, your example is indeed demonstrative !).

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

No branches or pull requests

3 participants