Giter Club home page Giter Club logo

Comments (5)

khase avatar khase commented on July 21, 2024 2

@lukaskorte cah this be closed??

from geli.

aeimer avatar aeimer commented on July 21, 2024

A similar problem occurs when the auth token expires and I try to access pages. If we get a 401 - Unauthorized we should show the homescreen in "logged out"-mode.

from geli.

aeimer avatar aeimer commented on July 21, 2024

@lukaskorte is this still a thing?

from geli.

torss avatar torss commented on July 21, 2024

Issues mentioned in the previous comments seem to be fixed already:

  • The initial window.localStorage["currentUserRole"] = "admin"; issue does not exist anymore. I.e. the string "currentUserRole" can not even be found in the current codebase.
  • Trying to use an invalid token sends one back to the login page.

It is still possible to locally promote oneself to admin / teacher by other means.
(And that cannot really be prevented, of course, especially since this an open source project and anyone can easily build a modified client.)
But no information is leaked to the dashboard, since #594 is fixed by now (i.e. hidden courses stay hidden, as do access keys and so on).

The following tested attacks fail as they should:

  • Trying to edit a course (i.e. trying to change general information, content, media, members or teachers).
  • Trying to access a course one normally can't access (i.e. a hidden course or a non-free course the user isn't enrolled in).

However, an attacker can still view the course edit pages for any normally visible course.
This means access to /api/courses/:id GetCourse, which then leaks information.
I.e. this reveals a missed sub-issue of #594.
And, just like the original #594 /api/courses/ GetCourses leak, one does not even need to promote oneself to admin or teacher to obtain the leaked data.

from geli.

torss avatar torss commented on July 21, 2024

This issue may now be closed, since the newfound GetCourse leak got its own issue #653 and the originally mentioned problems are apparently gone.

from geli.

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.