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

Information disclosure at context parameter #6779

Closed
holsandre opened this issue Dec 30, 2022 · 0 comments · Fixed by #6780
Closed

Information disclosure at context parameter #6779

holsandre opened this issue Dec 30, 2022 · 0 comments · Fixed by #6780
Assignees

Comments

@holsandre
Copy link

Steps to reproduce the problem.

see the output of these 2 requests, it gives the information which file is on the system and which is not

https://demo.mapserver.org/cgi-bin/wms?context=/etc/passwd

https://demo.mapserver.org/cgi-bin/wms?context=/etc/passwd2

Expected behavior

there should be an env paramenter like MS_MAP_PATTERN for context files

@rouault rouault self-assigned this Dec 30, 2022
rouault added a commit to rouault/mapserver that referenced this issue Dec 30, 2022
…tes new MS_MAP_CONTEXT_PATTERN configuration option (and doesn't validate MS_MAP_CONTEXT_BAD_PATTERN) (fixes MapServer#6779)
rouault added a commit to rouault/mapserver that referenced this issue Dec 30, 2022
rouault added a commit to rouault/mapserver that referenced this issue Dec 30, 2022
rouault added a commit to rouault/mapserver that referenced this issue Dec 30, 2022
…tes new MS_CONTEXT_PATTERN configuration option (and doesn't validate MS_CONTEXT_BAD_PATTERN) (fixes MapServer#6779)
rouault added a commit to rouault/mapserver that referenced this issue Dec 30, 2022
rouault added a commit to rouault/mapserver that referenced this issue Dec 30, 2022
rouault added a commit to rouault/mapserver that referenced this issue Dec 30, 2022
github-actions bot pushed a commit that referenced this issue Jan 3, 2023
…tes new MS_CONTEXT_PATTERN configuration option (and doesn't validate MS_CONTEXT_BAD_PATTERN) (fixes #6779)
github-actions bot pushed a commit that referenced this issue Jan 3, 2023
rouault added a commit to rouault/mapserver that referenced this issue Jan 3, 2023
…tes new MS_CONTEXT_PATTERN configuration option (and doesn't validate MS_CONTEXT_BAD_PATTERN) (fixes MapServer#6779)
rouault added a commit to rouault/mapserver that referenced this issue Jan 3, 2023
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 a pull request may close this issue.

2 participants