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 possible injection using HTTP_X_FORWARDED_FOR #3900

Merged
merged 1 commit into from Jun 7, 2021

Conversation

renaudlemaire
Copy link

Not really dangerous but it is possible to inject content in HTTP_X_FORWARDED_FOR and it displays.

  • check existance of REMOTE_ADDR in $_SERVER
  • display ip only if valid ip

@jmontoyaa jmontoyaa merged commit 93011a8 into chamilo:1.11.x Jun 7, 2021
@jmontoyaa
Copy link
Member

@renaudlemaire thanks!

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.

None yet

2 participants