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

newrelic / infrastructure-agent / 29091214812 / 1
54%
master: 54%

Build:
Build:
LAST BUILD BRANCH: security/NR-574888-inventory-path-traversal
DEFAULT BRANCH: master
Ran 10 Jul 2026 12:06PM UTC
Files 339
Run time 13s
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 Jul 2026 12:00PM UTC coverage: 53.648% (+0.07%) from 53.574%
29091214812.1

Pull #2285

github

sairaj18
fix(security): contain inventory plugin writes to the plugin dir (NR-574888)

SavePluginSource concatenated the payload-controlled `term` (integration
`name`) directly into the on-disk path via fmt.Sprintf, unsanitised. A `../`
in `term` — reachable unauthenticated via the HTTP/TCP integration ingest
endpoints — let the (root) agent write attacker-controlled JSON to an
arbitrary path (path traversal -> root arbitrary file write; CWE-22/23/73).

Reject terms that are not a plain filename (path separators / ".." / unsafe
chars, via SanitizeFileName), build the path with filepath.Join, and add a
defence-in-depth containment check that the resolved path stays within the
plugin directory. Adds a regression test (fails against the unpatched sink).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2285: fix(security): contain inventory plugin writes to the plugin dir (NR-574888)

14590 of 27196 relevant lines covered (53.65%)

17.91 hits per line

Source Files on job run-linux - 29091214812.1
  • Tree
  • List 339
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29091214812
  • 3ff69e7e on github
  • Prev Job for on security/NR-574888-inventory-path-traversal (#28936003353.1)
  • 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