Giter Site home page Giter Site logo

diagramo-old's People

Contributors

alexgheorghiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

diagramo-old's Issues

My diagrams settings icon don't work

Clicking on the settings icon causes:

Fatal error: Call to a member function settingsGetByKeyNative() on a non-object in D:!!web\diagramo\editor\header.php on line 2

Is path creating algorithm your own algorithm or not?

At first I would like to thank you for sharing your source code!

And I would like to ask you about the algorithm for path creating between 2 draggable points. Is it your own algorithm in your solution or is it from some book or from page in internet? I have never seen something like this and if it is the second case (not your own algorithm), I would like to read a litle bit more about this algorithm.

Would you like to give me some link(s) or names for this algorithm?

Thank you again!

spits out the request parameter figureID

As a third bug, the same file direct spits out the request parameter figureID which allows someone to insert a < script > tag, leading to an XSS attack.

A fourth bug exists in editDiagram.php, which doesn't check that the request param diagramId is an integer. A string can be passed in, and it's passed along from function to function right into Delegate::getMultiple. Finally addslashes stops the SQL injection fun. By the way, SQLite3 specifically advises against using addslashes (which doesn't work as expected with some multibyte character sets) and to use SQLite3::escapeString instead.

My advice is to be anal about sanitizing user input. I would also use ctype_digit instead of is_numeric as is_numeric will allow passing things like -0123.45e6 where ctype_digit will accept digits only.

Please get back to me so I know these critical security issues have been addressed.

"allows anyone to download any file on the server"

The first allows anyone to download any file on the server that the user running the PHP script has access to (usually www-data, apache, etc). The bug is in getImage.php. The url request parameter is not sanitized, which allows for url like this:

http://example.com/editor/getImage.php?url=../../../etc/passwd

which happily returns the contents of /etc/password. An appropriate number of ../ can be used to access any file.

Similar holes exist in other scripts. svg.php allows the inclusion of any .svg file, and png.php allows the inclusion of any .png file.

Login warning

Notice: Trying to get property of non-object in C:\Projects\diagramo\web\editor\login.php on line 26

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.