Giter VIP home page Giter VIP logo

code's People

Contributors

gera-g-guiles avatar helferino avatar kidchris avatar molda avatar patchwerkqwer avatar pavolsk avatar petersirka avatar tomee03 avatar will-create avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

code's Issues

[Security] Remote command execution

Using the API /api/common/ping it's possible to achieve remote command execution on the host machine. This leads to complete control over the machine hosting the server.

To reproduce the vulnerability:

  • Download the repo
  • Execute node index.js
  • Login
  • Execute this request as shown below:

Screenshot from 2022-09-21 21-42-33

HTTP request:

POST /api/common/ping HTTP/1.1
Host: 0.0.0.0:8000
User-Agent: bla-bla-bla
Cookie: your-auth-cookie
Content-Length: 15

host=1.1.1.1;id

This is the vulnerable code:

	schema.addWorkflow('ping', function($) {
		var host = $.model.host.replace(/'|"|\n/g, '');
		Exec('ping -c 3 {0}'.format(host), $.done(true));
	});

Here the problem is the fact that the server doesn't sanitize correctly the input checking that the host provided is a legitimate one, allowing also characters like ;, | or &.

Remote Command Execution

I recently stumbled upon CVE-2022-44019 and noticed that the fix implemented for it can be bypassed by using backticks. Backticks are used to execute a subcommand before the main command, as the shell evaluates the expression inside the backticks first.

image

can't preview project

I try create project and click preview, then the address URL get http://my_host:port/my_project , but it return editor view in new tab and I get logout

Stuck on loading

Hey guys i have noticed with v1.4.0 when you save a file it does save the file but the screen just gets stuck on the loading and nevers comes off until you refresh the page ??

cdn.min.js:13 POST http://103.16.131.178:8000/api/files/197682001ap61b/ 408 (Request Timeout)

getting this error ??

also with the new v5 you cant seem to add a new directory to the project ?

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.