Skip to content
Path traversal Advisory Intermediate CVE-2022-41955CVE-2022-41956

GHSL-2022-100: Path traversal vulnerability and remote code execution (RCE) vulnerability in Autolab - CVE-2022-41955,CVE-2022-41956

Autolab had a path traversal in its remote handin feature allowing unauthenticated attackers to submit arbitrary file paths and later view the file contents, and an authenticated command injection in the MOSS plagiarism checker allowing instructors to execute shell commands on the server.

p Follow

Originally disclosed on GitHub Security Lab

Autolab provides the possibility to allow submissions of students via a so-called remote handin feature. Handins submitted with this feature are copied from a path that is accessible to the running Autolab instance.

p-, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

The path traversal could lead to information disclosure, and the command injection could lead to remote code execution, though the latter requires instructor privileges.

What the attacker needed

Remote handin path set; handin directory for user exists; registered user email; instructor login

The fix

The vulnerabilities were fixed and advisories were published.

How it was found

  1. Set up remote handin path and ensure a handin directory exists for a user.
  2. Construct a URL with a path traversal in the submit parameter.
  3. Send a GET request to the local_submit endpoint.
  4. View the submitted file contents in the Handin History.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report describes two security holes in a web application used by universities. One lets anyone trick the system into reading files from the server that they should not see, and the other lets a teacher run commands on the server, which could give them full control.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by p

View all

49 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.