Comments (3)
- Does the problem appear when Omnisearch is the only enabled plugin?
- If not, what are the other enabled plugins?
I don't have this issue, and Omnisearch itself definitely doesn't alert()
anything. I first thought that you might have a note with some HTML & JavaScript that was triggered during indexing, but that doesn't seem to be that. If you can't locate the incompatible plugin(s), could you send me your plugins list?
Thank you
from obsidian-omnisearch.
Hi, thanks for the prompt response.
It does happen when I only have the plugin as well.
However, when I created a totally new vault, copied the plugin and paste it there, it doesn't do a popup.
Does the plugin read the notes on startup? Maybe I have one note somewhere which does alert()
and the plugin reads it and renders it?
So after adding my notes folder one by one, and trying to replicate the error, I found that as soon as I copied in my notes the popup would appear. Then I used that to narrow down the note that I have, and down to the specific line, line number 5.
I narrowed it down to this file, where I kept a list of command injection payloads and xss payloads. My other payloads have been removed from this file, as it doesn't cause the popup.
If your plugin is disabled, it won't spawn a popup, but when it is enabled, and I copied the note into the vault, it will popup. It seems like your plugin might be vulnerable to XSS, which is weird because the payload is in code
format.
\```
echo '<img src=https://crowdshield.com/.testing/xss.js onload=prompt(2) onerror=alert(3)></img>'// XXXXXXXXXXX
\```
(note: please remove the leading slash as I cannot escape the nested triple ticks on the github flavour markdown.)
from obsidian-omnisearch.
Yep that's it, thanks for your investigation!
I'll add a sanitization step asap, before the notes indexing.
from obsidian-omnisearch.
Related Issues (20)
- [BUG] Mobile - Omnisearch doesn't pull up the keyboard if triggered via the command pallette
- [BUG] inject results in Google has minor (CSS?) layout issues HOT 2
- [Feature request] Show URLs as links in the search results in instead of expanding the full context
- [Feature request] Force enable "Save index to cache"
- Stronger boolean search with date range HOT 3
- Feature Request: Select folder for new notes
- [BUG] Hello friend! Cannot find "Omnisearch: In-file search" HOT 5
- [BUG] OCRd and cached image cannot be found in search HOT 4
- [Bug] Incompatibility with plugin "Open in New Tab" HOT 4
- [BUG] Message: "... files need to be indexed. Obsidian may experience ..." at every start of Obsidian HOT 1
- [BUG] iOS crash since 1.22.x HOT 7
- [BUG] Open note instead of navigating to the already opened instance HOT 1
- [BUG] omnisearch-highlight CSS highlight update not effective HOT 5
- [BUG] Save index to cache gets disabled on android
- [BUG] I don't thnk indexing is actully happing HOT 2
- [Feature request] tab complete for folders when running the Omnisearch vault search
- [BUG] With Omnisearch enabled, opening a note instantly after launching Obsidian leads to a delay reading it HOT 3
- [Feature request] Correctly clean Arabic diacritics
- [BUG] Android mobile / Crashes after installing obsidian for first time and tries to initialize the vault HOT 2
- [BUG] In-file search hotkey not triggered in Reader mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-omnisearch.