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

Reflected Site Scripting(XSS) - Multiple ($_SERVER['PHP_SELF']) (1) #2450

Closed
Loginsoft-Research opened this issue Jan 24, 2019 · 0 comments
Closed

Comments

@Loginsoft-Research
Copy link

Describe Your Environment

  • ZoneMinder v1.33.1
  • Installed from - ppa:iconnor/zoneminder-master

Describe the bug
There exists XSS in multiple views as it insecurely utilizes $_REQUEST['PHP_SELF'], that is without applying any proper filtration

All the view files available under /web/skins/classic/views/ are vulnerable, expect few listed below.

/web/skins/classic/views/blank.php
/web/skins/classic/views/error.php
/web/skins/classic/views/event.php
/web/skins/classic/views/events.php
/web/skins/classic/views/image-ffmpeg.php
/web/skins/classic/views/_monitor_filters.php
/web/skins/classic/views/_monitor_source_nvsocket.php
/web/skins/classic/views/optionhelp.php
/web/skins/classic/views/plugin.php
/web/skins/classic/views/postlogin.php
/web/skins/classic/views/status.php
/web/skins/classic/views/timeline.php
/web/skins/classic/views/version.php
/web/skins/classic/views/watch.php

To Reproduce
Affected URL :
http://localhost/zm/index.php/${injectionpoint}$?view=ANYVIEWNAME

Payload used - </script>"><img src=x onerror-prompt('1');>

  • Navigate to the Affected URL, Payload would be triggered.

php_self

Expected behavior

  • Proper escaping of special characters.

Debug Logs


None

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

2 participants