Coder Social home page Coder Social logo

Comments (5)

edruid avatar edruid commented on June 3, 2024 1

I don't actually have a good resource... But the issue is easy enough to test: in a test environment (on a different domain than geekdocs.de) change the loadScript for the search data to use the demo sites data: https://geekdocs.de/js/en.search-data.min.117b1c7d3df6007e36fb3e6e137875a00134205b7aceeae7ac39abdfa5a77399.js

The CORS rules actually applies in that you cannot read the javascript code, but the script is run and the data is stored in window.geekdocSearchIndex which is available to a nefarious site.

This type of attack was once successful in downloading users contacts from gmail once upon a time (~2006 or so) but I couldn't find a good writup on it...

from hugo-geekdoc.

edruid avatar edruid commented on June 3, 2024 1

I might be able to make a pull request with changes, but I'm not fluent with either hugo templates or javascript. But if nothing else it might serve as an idea.

from hugo-geekdoc.

xoxys avatar xoxys commented on June 3, 2024

Thanks for your report. Do you have a link for some background? I can't see how/why JavaScript files are excluded from CORS rules.

from hugo-geekdoc.

xoxys avatar xoxys commented on June 3, 2024

Related upstream issue nextapps-de/flexsearch#205

from hugo-geekdoc.

xoxys avatar xoxys commented on June 3, 2024

Thanks for adding the details. I need to take a look how to handle this with a JSON file...

from hugo-geekdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.