• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / catalyst-storage / 27281661377
95%

Build:
DEFAULT BRANCH: main
Ran 10 Jun 2026 02:01PM UTC
Jobs 1
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jun 2026 02:00PM UTC coverage: 95.943% (+0.02%) from 95.927%
27281661377

push

github

web-flow
fix: harden folder storage path containment against prefix confusion (#102)

The containment check used `finalPath.startsWith(directoryPath)` with no
trailing separator, so a sibling directory sharing the prefix passed it —
e.g. "/data/contents-evil".startsWith("/data/contents") is true. With
disablePrefixHash an id like "../<root>-evil/x" could therefore escape the
storage root for read/write/delete.

Compare against `directoryPath + path.sep` (allowing the directory itself)
so sibling-prefix paths are rejected. Adds traversal tests.

Also document that the gzip-derived FileInfo.contentSize comes from the
attacker-controllable gzip trailer and must not be trusted for allocation
or size limits.

106 of 119 branches covered (89.08%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

367 of 374 relevant lines covered (98.13%)

34.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27281661377.1 10 Jun 2026 02:01PM UTC 9
95.94
GitHub Action Run
Source Files on build 27281661377
  • Tree
  • List 9
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27281661377
  • 9493a326 on github
  • Prev Build on main (#27278606859)
  • Next Build on main (#27282131930)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc