Code Monkey home page Code Monkey logo

Comments (2)

gregrgay avatar gregrgay commented on July 21, 2024
  1. Create course:
    The course name is not validated that allows to inject a javascript query into the name field.
    Steps to reproduce:
Instructor A creates a course with a script in course name as follows: <script>alert('CourseAlert');</script>

SOLUTION: add strip_tags() to sanitize course title

Another script in banner. <script>alert('BannerAlert');</script>

SOLUTION: won't fix. banner should allow JS.
Login as admin.
When you click on courses, the ‘CourseAlert’ pops up.
Every time the course profile is checked by the student, the ‘BannerAlert’ also pops up. Severity is high as admin could be attacked with a malicious script.

  1. File Upload in course
    There are illegal file extensions mentioned where all the executable files are checked. But a file without any extension is accepted. This could be a binary executable file.
    SOLUTION: added extention required

Filename - It is possible to mount a javascript into this variable. Filename is not validated.
File content - An attacker can write a malicious script into the file content and upload.

Steps to reproduce:

Instructor A goes to his course and then go to file storage.
Clicks on create a new file.
The file name is given as : <script>alert('File1');</script>

SOLUTION: required file extension fixes this
The file content is given as <script>alert('Filecontent');</script>
SOLUTION: won't fix this. script should be allowed in file content
Now a student/Admin logs in. As soon as a page displaying file name comes, the script File1 gets popped up even without clicking on it.
If the content is downloaded, the alert Filecontent pops up.

from atutor.

gregrgay avatar gregrgay commented on July 21, 2024

tracker URL
http://www.atutor.ca/atutor/mantis/view.php?id=5608

from atutor.

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.