Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rce): security fix regarding open PATH environment #118

Merged
merged 18 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ If you are 100% new to Github, you can go to Google or Youtube and lookup about
collaborate with people in Github. Some of our favorites are:

* [Git It? How to use Git and Github](https://www.youtube.com/watch?v=HkdAHXoRtos) by Fireship (Youtube)
* [Git and GitHub for Beginners - Crash Course](https://www.youtube.com/watch?v=RGOj5yH7evk) by freeCodeCamp.org (Youtube)
* [Git and GitHub for Beginners - Crash Course](https://www.youtube.com/watch?v=RGOj5yH7evk) by freeCodeCamp.org (
Youtube)
* [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/) by Open Source Guide (article)
* [Learn Git & GitHub](https://www.codecademy.com/learn/learn-git) by Codecademy (Paid online course)

Expand Down Expand Up @@ -47,8 +48,8 @@ whether the idea has already been proposed on the [issue list](https://github.co
This is basically the hardest contribution you can do, because writing technical or non-technical documentation
is always a challenge for us developers.

You can help by documenting everything. Create how-tos, create in-code documentation (what the function does, why X is here, etc),
or even fixing some typos (including some that may exist on this document). But, please bear in mind that
You can help by documenting everything. Create how-tos, create in-code documentation (what the function does, why X is
here, etc), or even fixing some typos (including some that may exist on this document). But, please bear in mind that
documentation should be easy to understand (by using simple English) and should be accessible to everyone.
You don't want people to ask you over and over again for something that only some people understand.

Expand All @@ -59,8 +60,8 @@ Finally, this is what most developers can help, by code.
We use multiple programming language to bring Pesto to life. Please read each README on the submodule that
you are interested in to have detailed explanation on how to contribute to each specific module.

All services (or modules) are deployed on a cloud VPS using Docker. The Docker images are built on Github Actions and pushed
to the Github Contianer Registry. On each commit push to master, it will trigger a deployment action that will SSH to the VPS
and trigger a pull for new image.
All services (or modules) are deployed on a cloud VPS using Docker. The Docker images are built on GitHub Actions and
pushed to the Github Contianer Registry. On each commit push to master, it will trigger a deployment action that will
SSH to the VPS and trigger a pull for new image.

We are waiting for your contribution!
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Pesto - Remote Code Execution Engine

**Pesto** is a Remote Code Execution Engine that lets you execute any piece of code on a remote server via REST API. It is heavily inspired by [Piston](https://github.com/engineer-man/piston). Pesto is not a fork of Piston, it's an entire rewrite from scratch and therefore it's not compatible with Piston but should be similar if you're already familiar with Piston.
**Pesto** is a Remote Code Execution Engine that lets you execute any piece of code on a remote server via REST API. It
is heavily inspired by [Piston](https://github.com/engineer-man/piston). Pesto is not a fork of Piston, it's an entire
rewrite from scratch and therefore it's not compatible with Piston but should be similar if you're already familiar with
Piston.

Pesto was written with a fresh start, minimizing the dependencies needed, and system controlled for limited resources usage. Hence, users will need to register in order to gain access to Pesto's API.

Pesto API itself is hosted on our cloud VPS in Singapore, backed by the contributions on our donators from [Saweria](https://saweria.co/teknologiumum) (Indonesian only) and [Github Sponsors](https://github.com/sponsors/teknologi-umum) (Worldwide). The API is 100% free to use. However, if you are using Pesto API on a commercial project or on a project that makes money to you, please consider donating to keep the API running.
Pesto was written with a fresh start, minimizing the dependencies needed, and system controlled for limited resources
usage. Hence, users will need to register in order to gain access to Pesto's API.

Pesto API itself is hosted on our cloud VPS in Singapore, backed by the contributions on our donators
from [Saweria](https://saweria.co/teknologiumum) (Indonesian only)
and [Github Sponsors](https://github.com/sponsors/teknologi-umum) (Worldwide). The API is 100% free to use. However, if
you are using Pesto API on a commercial project or on a project that makes money to you, please consider donating to
keep the API running.

See [our website](https://pesto.teknologiumum.com) for details.

Expand All @@ -28,9 +35,17 @@ Are you using Pesto on your project, if so, please put it here!

## Contributing

General contribution guidelines are on [CONTRIBUTING.md](./CONTRIBUTING.md), yet if you choose to do a code contribution, please refer to the README file on each submodule that you are interested in. We are looking forward for your contribution.
General contribution guidelines are on [CONTRIBUTING.md](./CONTRIBUTING.md), yet if you choose to do a code
contribution, please refer to the README file on each submodule that you are interested in. This repository may seem
daunting for newcomers, but rest assured, we're all friendly and we welcome any contributions whether it's just a typo
fix, a package version bump, or a security enhancement for one of Pesto's package. We are looking forward for your
contribution.

Please use [issues](https://github.com/teknologi-umum/pesto/issues) to file a bug or discuss any matter before
contributing to the source code.

Please use [issues](https://github.com/teknologi-umum/pesto/issues) to file a bug or discuss any matter before contributing to the source code.
If you need additional help, you can always talk to us via [Telegram](https://t.me/teknologi_umum_v2)
or [Discord](https://discord.gg/b3JRrGuxR6).

## License

Expand Down
8 changes: 4 additions & 4 deletions dogfood/cpp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ void fizzbuzz(int num)
const expectedOutput = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n16\n17\nFizz\n19\nBuzz\nFizz\n22\n23\nFizz\nBuzz\n26\nFizz\n28\n29\nFizzBuzz\n31\n32\nFizz\n34\nBuzz\nFizz\n37\n38\nFizz\nBuzz\n41\nFizz\n43\n44\nFizzBuzz\n46\n47\nFizz\n49\nBuzz\nFizz\n52\n53\nFizz\nBuzz\n56\nFizz\n58\n59\nFizzBuzz\n61\n62\nFizz\n64\nBuzz\nFizz\n67\n68\nFizz\nBuzz\n71\nFizz\n73\n74\nFizzBuzz\n76\n77\nFizz\n79\nBuzz\nFizz\n82\n83\nFizz\nBuzz\n86\nFizz\n88\n89\nFizzBuzz\n91\n92\nFizz\n94\nBuzz\nFizz\n97\n98\nFizz\nBuzz";

assert.strictEqual(codeOutput.language, "C++");
assert.strictEqual(codeOutput.runtime.stdout?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.output?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.stdout?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.stderr, "");
assert.strictEqual(codeOutput.runtime.exitCode, 0);
assert.strictEqual(codeOutput.compile.stdout, "");
assert.strictEqual(codeOutput.compile.output, "");
assert.strictEqual(codeOutput.compile.stdout, "");
assert.strictEqual(codeOutput.compile.stderr, "");
assert.strictEqual(codeOutput.compile.exitCode, 0);
});
Expand Down Expand Up @@ -118,12 +118,12 @@ int main() {
const expectedOutput = "{ (1 3 ) (1 4 ) (2 3 ) (2 4 ) }\n{ (3 1 ) (3 2 ) (4 1 ) (4 2 ) }\n{ }\n{ }\n{ (1776 7 4 0 ) (1776 7 4 1 ) (1776 7 14 0 ) (1776 7 14 1 ) (1776 7 23 0 ) (1776 7 23 1 ) (1776 12 4 0 ) (1776 12 4 1 ) (1776 12 14 0 ) (1776 12 14 1 ) (1776 12 23 0 ) (1776 12 23 1 ) (1789 7 4 0 ) (1789 7 4 1 ) (1789 7 14 0 ) (1789 7 14 1 ) (1789 7 23 0 ) (1789 7 23 1 ) (1789 12 4 0 ) (1789 12 4 1 ) (1789 12 14 0 ) (1789 12 14 1 ) (1789 12 23 0 ) (1789 12 23 1 ) }\n{ (1 30 500 ) (1 30 100 ) (2 30 500 ) (2 30 100 ) (3 30 500 ) (3 30 100 ) }\n{ }";

assert.strictEqual(codeOutput.language, "C++");
assert.strictEqual(codeOutput.runtime.stdout?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.output?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.stdout?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.stderr, "");
assert.strictEqual(codeOutput.runtime.exitCode, 0);
assert.strictEqual(codeOutput.compile.stdout, "");
assert.strictEqual(codeOutput.compile.output, "");
assert.strictEqual(codeOutput.compile.stdout, "");
assert.strictEqual(codeOutput.compile.stderr, "");
assert.strictEqual(codeOutput.compile.exitCode, 0);
});
Expand Down
4 changes: 2 additions & 2 deletions dogfood/sqlite3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ describe("SQLite3", {concurrency: true}, () => {
const expectedOutput = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n16\n17\nFizz\n19\nBuzz\nFizz\n22\n23\nFizz\nBuzz\n26\nFizz\n28\n29\nFizzBuzz\n31\n32\nFizz\n34\nBuzz\nFizz\n37\n38\nFizz\nBuzz\n41\nFizz\n43\n44\nFizzBuzz\n46\n47\nFizz\n49\nBuzz\nFizz\n52\n53\nFizz\nBuzz\n56\nFizz\n58\n59\nFizzBuzz\n61\n62\nFizz\n64\nBuzz\nFizz\n67\n68\nFizz\nBuzz\n71\nFizz\n73\n74\nFizzBuzz\n76\n77\nFizz\n79\nBuzz\nFizz\n82\n83\nFizz\nBuzz\n86\nFizz\n88\n89\nFizzBuzz\n91\n92\nFizz\n94\nBuzz\nFizz\n97\n98\nFizz\nBuzz";

assert.strictEqual(codeOutput.language, "SQLite3");
assert.strictEqual(codeOutput.runtime.stdout?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.output?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.stdout?.trim(), expectedOutput);
assert.strictEqual(codeOutput.runtime.stderr, "");
assert.strictEqual(codeOutput.runtime.exitCode, 0);
assert.strictEqual(codeOutput.compile.stdout, "");
assert.strictEqual(codeOutput.compile.output, "");
assert.strictEqual(codeOutput.compile.stdout, "");
assert.strictEqual(codeOutput.compile.stderr, "");
assert.strictEqual(codeOutput.compile.exitCode, 0);
})
Expand Down
24 changes: 12 additions & 12 deletions pesto.iml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/rce/packages/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/rce/packages/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
13 changes: 12 additions & 1 deletion rce/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,24 @@ WORKDIR /app
COPY . .

RUN apt-get update && \
# Update OS dependencies \
apt-get upgrade -y && \
apt-get install -y coreutils binutils build-essential libseccomp-dev gcc apt-utils curl tar bzip2 gzip && \
apt-get install -y coreutils binutils build-essential libseccomp-dev gcc \
apt-utils curl tar bzip2 gzip make cmake zip unzip autoconf pkg-config \
flex perl sed clang libc6-dev libc6 && \
# Prohibits network access
make -C ./nosocket/ all && make -C ./nosocket/ install && \
npm ci && \
# We install packages here
node ./scripts/install.cjs && \
# Remove installed build steps via apt just to lessen the image size more \
apt-get remove -y bzip2 make cmake zip unzip flex clang gcc g++ apt-utils \
build-essential && \
# Create OS users
node ./scripts/register-users.cjs && \
# Build the application
npm run build && \
# Remove every dependencies, install runtime-only
rm -rf node_modules && npm ci --omit=dev && \
apt-get autoremove -y && apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 2 additions & 2 deletions rce/packages/brainfuck/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

apt-get update
apt-get install -y libedit-dev cmake
cd ~
apt-get install -y libedit-dev
curl -LO https://github.com/fabianishere/brainfuck/archive/refs/tags/2.7.3.tar.gz
tar -zxf 2.7.3.tar.gz
mkdir -p brainfuck-2.7.3/build
Expand Down
2 changes: 1 addition & 1 deletion rce/packages/c++/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build_command = [
"{file}"
]
environment = [
"PATH=/opt/gcc/12.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PATH=/opt/gcc/12.2.0/bin:/usr/bin",
"LD_LIBRARY_PATH=/opt/gcc/12.2.0/lib64",
"CC=/opt/gcc/12.2.0/bin/gcc",
"CXX=/opt/gcc/12.2.0/bin/g++",
Expand Down
5 changes: 1 addition & 4 deletions rce/packages/c++/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ if [ -d "/opt/gcc/12.2.0/" ]; then
exit 0
fi

apt-get update
apt-get install -y gcc build-essential libc6-dev dpkg-dev autoconf flex curl tar gzip
apt-get install -y libc6-dev dpkg-dev

cd ~

Expand All @@ -27,5 +26,3 @@ make install-strip -j $(nproc)
cd ..

rm -rf build gcc*

apt-get remove -y gcc
2 changes: 1 addition & 1 deletion rce/packages/c/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build_command = [
"{file}"
]
environment = [
"PATH=/opt/gcc/12.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PATH=/opt/gcc/12.2.0/bin:/usr/bin",
"LD_LIBRARY_PATH=/opt/gcc/12.2.0/lib64:$LD_LIBRARY_PATH",
"CC=/opt/gcc/12.2.0/bin/gcc",
"CXX=/opt/gcc/12.2.0/bin/g++",
Expand Down
5 changes: 1 addition & 4 deletions rce/packages/c/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ if [ -d "/opt/gcc/12.2.0/" ]; then
exit 0
fi

apt-get update
apt-get install -y gcc build-essential libc6-dev dpkg-dev autoconf flex curl tar gzip
apt-get install -y libc6-dev dpkg-dev

cd ~

Expand All @@ -27,5 +26,3 @@ make install-strip -j $(nproc)
cd ..

rm -rf build gcc*

apt-get remove -y gcc
6 changes: 3 additions & 3 deletions rce/packages/clisp/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ version = "2.2.7"
compiled = false
extension = "cl"
build_command = []
environment = [ "SBCL_HOME=/opt/sbcl/2.2.7/lib/sbcl", "PATH=/opt/sbcl/2.2.7:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ]
environment = [ "SBCL_HOME=/opt/sbcl/2.2.7/lib/sbcl", "PATH=/opt/sbcl/2.2.7" ]
run_command = [ "/opt/sbcl/2.2.7/bin/sbcl", "--script", "{file}" ]
test_file = "test.cl"
aliases = ["clisp", "sbcl"]
should_limit_memory = true
memory_limit = 1024
process_limit = 1024
memory_limit = 2048
process_limit = 2048
allowed_entrypoints = 1
2 changes: 1 addition & 1 deletion rce/packages/dotnet/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language = ".NET"
version = "6.0.300"
compiled = true
extension = "cs"
environment = [ "DOTNET_ROOT=/opt/dotnet/6.0.300", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/dotnet/6.0.300" ]
environment = [ "DOTNET_ROOT=/opt/dotnet/6.0.300", "PATH=/opt/dotnet/6.0.300" ]
build_command = [
"""bash -c 'cat <<EOF > Application.csproj
<Project Sdk="Microsoft.NET.Sdk">
Expand Down
3 changes: 1 addition & 2 deletions rce/packages/dotnet/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

VERSION="6.0.300"

apt-get update \
apt-get install -y --no-install-recommends \
libc6 \
libgcc1 \
Expand All @@ -11,7 +10,7 @@ apt-get install -y --no-install-recommends \
libssl1.1 \
libstdc++6 \
zlib1g

cd ~
curl -LO https://download.visualstudio.microsoft.com/download/pr/dc930bff-ef3d-4f6f-8799-6eb60390f5b4/1efee2a8ea0180c94aff8f15eb3af981/dotnet-sdk-6.0.300-linux-x64.tar.gz
mkdir -p /opt/dotnet/6.0.300
tar -zxf dotnet-sdk-6.0.300-linux-x64.tar.gz -C /opt/dotnet/6.0.300
Expand Down
2 changes: 1 addition & 1 deletion rce/packages/elixir-1.14/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language = "Elixir"
version = "1.14.1"
compiled = false
extension = "exs"
environment = [ "PATH=/opt/elixir/1.14/bin:/opt/erlang/25/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ]
environment = [ "PATH=/opt/elixir/1.14/bin:/opt/erlang/25/bin" ]
build_command = []
run_command = [ "elixir", "{file}" ]
test_file = "test.exs"
Expand Down
2 changes: 1 addition & 1 deletion rce/packages/erlang-25/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language = "Erlang"
version = "25.1.2"
compiled = false
extension = "erl"
environment = [ "PATH=/opt/erlang/25/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ]
environment = [ "PATH=/opt/erlang/25/bin" ]
build_command = []
run_command = [ "escript", "{file}" ]
test_file = "test.erl"
Expand Down
3 changes: 1 addition & 2 deletions rce/packages/erlang-25/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ if [[ -d "/opt/erlang/25" ]]; then
fi

cd ~
apt-get update
apt-get install -y ncurses-bin libncurses-dev perl sed gcc make clang
apt-get install -y ncurses-bin libncurses-dev
curl -LO https://github.com/erlang/otp/releases/download/OTP-25.1.2/otp_src_25.1.2.tar.gz
tar -zxf otp_src_25.1.2.tar.gz
mkdir -p /opt/erlang/25/
Expand Down
2 changes: 1 addition & 1 deletion rce/packages/go/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension = "go"
build_command = [ "/opt/go/1.20/go/bin/go", "build", "-o", "code", "{file}"]
run_command = [ "./code" ]
test_file = "test.go"
environment = [ "GOPATH=/opt/go/1.20/go", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/go/1.20/go/bin" ]
environment = [ "GOPATH=/opt/go/1.20/go", "PATH=/opt/go/1.20/go/bin" ]
aliases = [ "go", "golang" ]
should_limit_memory = false
memory_limit = 0
Expand Down
1 change: 1 addition & 0 deletions rce/packages/go/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

VERSION="1.20.2"

cd ~
curl -LO https://go.dev/dl/go${VERSION}.linux-amd64.tar.gz
mkdir -p /opt/go/1.20
tar -C /opt/go/1.20 -xzf go${VERSION}.linux-amd64.tar.gz
Expand Down
4 changes: 1 addition & 3 deletions rce/packages/janet/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ compiled = false
extension = "janet"
build_command = []
run_command = [ "janet", "{file}" ]
environment = [
"PATH=/opt/janet/v1.27.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
]
environment = [ "PATH=/opt/janet/v1.27.0/bin" ]
test_file = "test.janet"
aliases = ["janet"]
should_limit_memory = true
Expand Down
4 changes: 1 addition & 3 deletions rce/packages/janet/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

VERSION="1.27.0"

apt-get update
apt-get install -y make gcc build-essential

cd ~
curl -LO https://github.com/janet-lang/janet/archive/refs/tags/v${VERSION}.tar.gz
tar -zxf v${VERSION}.tar.gz
cd janet-${VERSION}/
Expand Down
2 changes: 1 addition & 1 deletion rce/packages/java/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build_command = [
]
run_command = [ "java", "-Xms64m", "-Xmx256m", "{file}" ]
environment = [
"PATH=/opt/java/17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PATH=/opt/java/17/bin",
"JAVA_HOME=/opt/java/17",
"JAVA_VERSION=17.0.5",
"LIBC=gnu"
Expand Down
2 changes: 1 addition & 1 deletion rce/packages/javascript-16/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language = "Javascript"
version = "16.15.0"
compiled = false
extension = "js"
environment = [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/node/16.15.0/bin"]
environment = [ "PATH=/opt/node/16.15.0/bin"]
build_command = []
run_command = [ "/opt/node/16.15.0/bin/node", "{file}" ]
test_file = "test.js"
Expand Down
1 change: 1 addition & 0 deletions rce/packages/javascript-16/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

VERSION="16.15.0"

cd ~
curl -LO https://nodejs.org/dist/v16.15.0/node-v${VERSION}-linux-x64.tar.gz
tar -zxf node-v${VERSION}-linux-x64.tar.gz

Expand Down
2 changes: 1 addition & 1 deletion rce/packages/javascript-18/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language = "Javascript"
version = "18.12.1"
compiled = false
extension = "js"
environment = [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/node/18.12.1/bin"]
environment = [ "PATH=/opt/node/18.12.1/bin"]
build_command = []
run_command = [ "/opt/node/18.12.1/bin/node", "{file}" ]
test_file = "test.js"
Expand Down
1 change: 1 addition & 0 deletions rce/packages/javascript-18/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

VERSION="18.12.1"

cd ~
curl -LO https://nodejs.org/dist/v${VERSION}/node-v${VERSION}-linux-x64.tar.gz
tar -zxf node-v${VERSION}-linux-x64.tar.gz

Expand Down
2 changes: 1 addition & 1 deletion rce/packages/julia/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language = "Julia"
version = "1.7.3"
compiled = false
extension = "jl"
environment = [ "PATH=/opt/julia/1.7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"]
environment = [ "PATH=/opt/julia/1.7/bin" ]
build_command = []
run_command = [ "/opt/julia/1.7/bin/julia", "{file}" ]
test_file = "test.jl"
Expand Down
Loading