Skip to content

fix(lfi-os-files): add .dockerenv, .DS_Store, META-INF/, WEB-INF/#4601

Merged
EsadCetiner merged 3 commits into
coreruleset:mainfrom
zoutjebot:fix/lfi-additional-sensitive-files
Apr 8, 2026
Merged

fix(lfi-os-files): add .dockerenv, .DS_Store, META-INF/, WEB-INF/#4601
EsadCetiner merged 3 commits into
coreruleset:mainfrom
zoutjebot:fix/lfi-additional-sensitive-files

Conversation

@zoutjebot
Copy link
Copy Markdown
Contributor

What

Adds detection for Docker container files, macOS metadata leaks, and Java servlet container sensitive paths.

Context

Part of CVE-derived payload research FN improvements. See tracking issue #4584 for full context.

Refs: #4584

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 30, 2026

📊 Quantitative test results for language: eng, year: 2023, size: 10K, paranoia level: 1:
🚀 Quantitative testing did not detect new false positives

Comment thread rules/lfi-os-files.data
@zoutjebot zoutjebot force-pushed the fix/lfi-additional-sensitive-files branch from f88cf2a to 0a01e16 Compare March 31, 2026 09:48
franbuehler
franbuehler previously approved these changes Apr 1, 2026
Copy link
Copy Markdown
Contributor

@franbuehler franbuehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

Copy link
Copy Markdown
Member

@EsadCetiner EsadCetiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you sync these changes with restricted-files.data and restricted-upload.data?

@fzipi
Copy link
Copy Markdown
Member

fzipi commented Apr 5, 2026

ping @zoutjebot

zoutjebot pushed a commit to zoutjebot/coreruleset that referenced this pull request Apr 5, 2026
…tricted-upload data

Syncs new entries from lfi-os-files.data to restricted-files.data and
restricted-upload.data as requested in PR review.

- restricted-files.data: add .dockerenv, META-INF/
- restricted-upload.data: add .dockerenv, META-INF/, WEB-INF/

Refs: coreruleset#4601
@zoutjebot
Copy link
Copy Markdown
Contributor Author

Synced. Added the new entries to both files:

restricted-files.data:

  • (after , line 33)
  • (before , line 427)

restricted-upload.data:

  • (after , line 49)
  • (after , line 434)
  • (after , line 499)

All entries placed alphabetically to match existing file conventions.

Copy link
Copy Markdown
Member

@EsadCetiner EsadCetiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one minor change.

Comment thread rules/lfi-os-files.data Outdated
Zoutje and others added 3 commits April 7, 2026 22:04
Add detection for additional sensitive file paths:

- .dockerenv: Docker container detection file at filesystem root
- .DS_Store: macOS directory metadata, can leak file listings
- META-INF/: Java servlet container metadata directory
- WEB-INF/: Java servlet container configuration (web.xml, classes)

Java WEB-INF/META-INF paths are critical for Java application attacks
(CVE-2018-1271, CVE-2020-17519, CVE-2021-21234) that use path
traversal to access these directories.

Refs: coreruleset#4584
…tricted-upload data

Syncs new entries from lfi-os-files.data to restricted-files.data and
restricted-upload.data as requested in PR review.

- restricted-files.data: add .dockerenv, META-INF/
- restricted-upload.data: add .dockerenv, META-INF/, WEB-INF/

Refs: coreruleset#4601
Co-authored-by: Esad Cetiner <104706115+EsadCetiner@users.noreply.github.com>
@fzipi fzipi force-pushed the fix/lfi-additional-sensitive-files branch from 4966256 to 13c2329 Compare April 8, 2026 01:04
@fzipi fzipi requested a review from EsadCetiner April 8, 2026 01:04
@EsadCetiner EsadCetiner added this pull request to the merge queue Apr 8, 2026
Merged via the queue into coreruleset:main with commit 1e288b6 Apr 8, 2026
8 checks passed
@fzipi fzipi added the release:new-detection In this PR we introduce a new detection label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:new-detection In this PR we introduce a new detection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants