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

Bug: Undefined variable: loginProfile in [/var/www/MISP/app/Controller/UserLoginProfilesController.php, line 150] #9424

Closed
1 task done
skalvaro opened this issue Nov 30, 2023 · 4 comments
Assignees
Labels
authentication This issue involves authentication confirmed Anything that was previously either under investigation, potential bug, bug etc. T: bug Type: bug report: This issue describes unexpected behaviour

Comments

@skalvaro
Copy link

Actual behavior

Unable to set the trust for the user login profile. As a result every login results in a New sign in email being sent.

Expected behavior

Able to set trust/malicious on the login profile.

Steps to reproduce

Update to v2.4.180.
Login, go to /users/view_login_history and try to either trust the profile or report as malicious.

Version

2.4.180

Operating System

RedHat

Operating System version

7

PHP version

7.4.33

Browser

Firefox

Browser version

No response

Relevant log output

2023-11-30 18:33:37 Notice: Notice (8): Undefined variable: loginProfile in [/var/www/MISP/app/Controller/UserLoginProfilesController.php, line 150]
Trace:
ErrorHandler::handleError() - APP/Lib/cakephp/lib/Cake/Error/ErrorHandler.php, line 230
UserLoginProfilesController::__setTrust() - APP/Controller/UserLoginProfilesController.php, line 150
UserLoginProfilesController::trust() - APP/Controller/UserLoginProfilesController.php, line 104
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Lib/cakephp/lib/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 101

Extra attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@skalvaro skalvaro added the needs triage This issue has been automatically labelled and needs further triage label Nov 30, 2023
@iglocska
Copy link
Member

iglocska commented Dec 1, 2023

Could you got pull and try it again? Does it persists?

@cvandeplas cvandeplas added T: bug Type: bug report: This issue describes unexpected behaviour authentication This issue involves authentication and removed needs triage This issue has been automatically labelled and needs further triage labels Dec 1, 2023
@cvandeplas cvandeplas self-assigned this Dec 1, 2023
@cvandeplas
Copy link
Member

cvandeplas commented Dec 1, 2023

There was indeed a bug in the code triggering the undefined variable error, fixed now, please update your MISP. T

@cvandeplas cvandeplas added the confirmed Anything that was previously either under investigation, potential bug, bug etc. label Dec 1, 2023
@skalvaro
Copy link
Author

skalvaro commented Dec 1, 2023

Just updated to 02c1c30 and can confirm it is working now.

@skalvaro skalvaro closed this as completed Dec 1, 2023
@cvandeplas
Copy link
Member

thanks for the update !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication This issue involves authentication confirmed Anything that was previously either under investigation, potential bug, bug etc. T: bug Type: bug report: This issue describes unexpected behaviour
Projects
None yet
Development

No branches or pull requests

3 participants