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

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

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

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)

12 of 14 new or added lines in 1 file covered. (85.71%)

2 existing lines in 1 file now uncovered.

14590 of 27196 relevant lines covered (53.65%)

17.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
68.49
2.34% internal/agent/delta/store.go

Coverage Regressions

Lines Coverage ∆ File
2
95.35
0.0% pkg/metrics/sampler/sampler_routine.go
Jobs
ID Job ID Ran Files Coverage
1 run-linux - 29091214812.1 10 Jul 2026 12:05PM UTC 339
53.65
GitHub Action Run
Source Files on build 29091214812
  • Tree
  • List 339
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29091214812
  • Pull Request #2285
  • PR Base - master (#28936003353)
  • 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