Skip to content

fix(lfi-os-files): require path prefix for .profile#4586

Merged
fzipi merged 1 commit into
coreruleset:mainfrom
zoutjebot:fix/lfi-profile-path
Apr 4, 2026
Merged

fix(lfi-os-files): require path prefix for .profile#4586
fzipi merged 1 commit into
coreruleset:mainfrom
zoutjebot:fix/lfi-profile-path

Conversation

@zoutjebot
Copy link
Copy Markdown
Contributor

What

Change .profile to /.profile in lfi-os-files.data.

Why

The bare .profile pattern causes false positives on values that contain '.profile' as a substring (e.g., user profile references, URL paths like /user.profile, form field names).

Adding the / prefix ensures the pattern only matches when .profile appears in an actual file path context (e.g., /home/user/.profile, ../../.profile).

Refs: #4584

Change .profile to /.profile to require a path context. The bare
.profile pattern causes false positives on values that happen to
contain '.profile' as a substring (e.g., user profile references,
URL paths like /user.profile).

Refs: coreruleset#4584
@github-actions
Copy link
Copy Markdown
Contributor

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

@HackingRepo
Copy link
Copy Markdown
Contributor

yes /user.profile is the common FP with that, by adding /profile will not break detection and eliminate the FP

@fzipi fzipi added this pull request to the merge queue Apr 4, 2026
Merged via the queue into coreruleset:main with commit c436d1a Apr 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants