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

Security and syntax issues #23

Open
otatarintseva opened this issue Oct 24, 2018 · 1 comment
Open

Security and syntax issues #23

otatarintseva opened this issue Oct 24, 2018 · 1 comment

Comments

@otatarintseva
Copy link

Hello, we wanted to use this plugin, but found some security and syntax issues during the code review. The issues are listed below:

  • directly calls to $_POST in several places,
  • use unserialize on required_param of PARAM_RAW type - mod/tracker/views/profile.controller.php line 52:
    "Do not pass untrusted user input to unserialize() regardless of the options value of allowed_classes. Unserialization can result in code being loaded and executed due to object instantiation and autoloading, and a malicious user may be able to exploit this. Use a safe, standard data interchange format such as JSON (via json_decode() and json_encode()) if you need to pass serialized data to the user." (http://php.net/manual/en/function.unserialize.php)
  • mod/tracker/rpclib.php function tracker_rpc_check () - uses $response->status = ... the variable is not initialized.
  • not initialized variables - mod/tracker/locallib.php
    • $descriptiontoken - line 454
    • $sql - line 536
    • $cookie - line 864
    • $context - line 1116
    • $ccuser - line1373
    • $CFG - line 1608
    • $ticketurl - line 1930
    • $stats - line 2111 - will work, but it is goot style and more safely to initialize the variable
    • $sr - typo, should be $str - could cause incorrect html code generation.
  • Similar things found in other files.
  • mod/tracker/views/editwatch.html - html syntax error in line 40
@vfremaux
Copy link
Owner

vfremaux commented Oct 24, 2018 via email

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