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

Fix IDOR tokens generation #3474

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

cedric-anne
Copy link
Contributor

Changes description

In GLPI 10.0.13, to be validated, a IDOR token must contains the condition parameter used by the dropdown, unless this parameter is empty.
Without this change, the corresponding dropdown values could not be loaded.

Checklist

Please check if your PR fulfills the following specifications:

  • Tests for the changes have been added
  • Docs have been added/updated

References

Closes #N/A

@cedric-anne cedric-anne requested a review from btry March 13, 2024 07:55
@cedric-anne cedric-anne self-assigned this Mar 13, 2024
@btry
Copy link
Collaborator

btry commented Mar 13, 2024

I expect that he dropdownfield class will also need a similar change. There is also a call to Session::getNewIDORToken

@cedric-anne
Copy link
Contributor Author

I expect that he dropdownfield class will also need a similar change. There is also a call to Session::getNewIDORToken

Indeed. I fixed it.

Copy link
Contributor

@AdrienClairembault AdrienClairembault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on a complex form and didn't notice any issues.

@btry btry merged commit 12a66de into pluginsGLPI:support/2.13.0 Mar 13, 2024
4 checks passed
@cedric-anne cedric-anne deleted the fix/idor-glpi-10.0.13 branch March 13, 2024 09:36
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

Successfully merging this pull request may close these issues.

3 participants