--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bd7284b4-861a-42c5-be25-d77a6eacdc98n%40googlegroups.com.
My question is this: From the TiddlyWiki GitHub saving file (https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/savers/github.js), it looks as if the entire wiki file (ie from html tag or similar) is placed inside a new commit for the user's given repo.
Correct me if I'm wrong, but this seems to be completely insecure. If it does work the way I described (.get() request to GitHub to get SHAs and pushing to provided filename), then what is keeping a user from inspecting the code (Right Click>Inspect) and adding a <script>var addedVariable = document.cookie;</script>, or adding TW5 saved localStorage password value with <script>var addedVariable=localStorage.getItem('PASSWORD-LocalStorageName');</script>and then waiting for someone with proper permissions to come through and save.
The way that this is working in my head (probably completely wrong) is that this variable would be saved as it's inside the bounds of the tag innerHTML, and run each time the wiki is opened.
As TiddlyWiki is single-file when downloaded as empty, I can't envision a multi-file system where each Tiddler is saved to a different .txt file, per say, which is the way I would have approached this.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dffd78a6-c91b-40a1-836d-b7cdbb06463bn%40googlegroups.com.
Whoops, just realized my mistake: only the creator of the TiddlyWiki or someone with the correct PAT can save.
I guess my real question is if TiddlyWiki does save by html tag, or if it grabs the values of Tiddlers individually and safely adds this code into the existing repo file. If so, how is this possible? It would seem like the GitHub API does not allow you to use existing code and just add new content in.
However, if you could, could you explain the GitHub saving in more depth?
For example, is the entire code file saved from the html tag onward?
Or is something else used, such as the Tiddler text added to existing commits. If the latter, could you explain how (with the GitHub API) this is even possible?
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2651a6ad-3672-4427-b03c-d151bb02ab0en%40googlegroups.com.
Interesting. So what’s stopping a TW owner from injecting a malicious script into a tiddler?
On a side note, PAT’s May be more safely stored by using the CryptoJS library (AES) which requires a password to decode the PAT.
I did something similar in my repo at GitHub.com/flancast90/lockifyJS, which could be simply adapted.
Why not? If you can add tiddler text to a txt file, any HTML code will not run. It is then much easier to call this plaintext back safely. Why is this just as insecure as a single file solution, then?
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b239496b-c4b3-48bd-8434-7e9d930964d5n%40googlegroups.com.
Interesting. So what’s stopping a TW owner from injecting a malicious script into a tiddler? On a side note, PAT’s May be more safely stored by using the CryptoJS library (AES) which requires a password to decode the PAT. I did something similar in my repo at GitHub.com/flancast90/lockifyJS, which could be simply adapted.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6803d010-a26c-4194-a532-445d05253118n%40googlegroups.com.