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 path traversal bug when creating events #455

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PetiteMais
Copy link

Hi!

Very cool extension!

I just would like to point out a tiny bug regarding file paths linked to the Full Note calendar mode.

In the createEvent function the file path is not checked. As such we can create an event called /../../event_name to write a markdown file at an arbitrary location.

The impact is non-existent as only markdown files are created and clearly someone with access to the Obsidian app needs to be adding calendar events ; but well 🙉.

The PR is a fix example.

Have a nice day ☺️

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.

1 participant