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

Add topic about "Streangthening the security" #602

Open
raducoravu opened this issue Mar 7, 2025 · 0 comments
Open

Add topic about "Streangthening the security" #602

raducoravu opened this issue Mar 7, 2025 · 0 comments

Comments

@raducoravu
Copy link
Member

Description

From the DITA OT meetup discussion, Jarno may do some code changes in the DITA OT to have it avoid reading/writing content from outside the input/output folders but he cannot stop plugins from doing this.

Possible Solution

Maybe we should have a topic in the user's manual about "Streangthening the security".

Maybe tell people that they should properly check and vet all plugins bundled in the DITA OT.
Maybe tell that as the DITA OT reads content and then writes the published output they should take care to properly define the input, temp and output folders so that they do not overwrite other files.
Maybe say that if you are running DITA OT on the server side you should also avoid hogging the CPU by running too many instances at the same time or allowing the same user to post too many jobs, so have some kind of jobs executor and avoid running too many DITA OTs in parallel.
Maybe say that the content processed by the DITA OT should come from reliable people to avoid attacks based on the parsers used to parse the input content.
Maybe say that the best way to isolate the DITA OT so that it never writes or reads content from the outside would be to run it in a container like docker:
https://www.dita-ot.org/dev/topics/using-docker-images#ariaid-title1

@jelovirt if you have any ideas here?

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

No branches or pull requests

1 participant