Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 19, 2026

Description

This PR addresses a security vulnerability where �grep's indexer would follow symbolic links by default, potentially allowing an attacker to index sensitive files outside the project directory (e.g. /etc/passwd).

Changes

  • Configured WalkBuilder in Indexer and ServerIndexer to use .follow_links(false).

Verification

  • Manual verification: Verified that WalkBuilder default behavior is overridden.
  • Symlinks pointing outside the project root will now be ignored during indexing.

Fixes #64 in bounty-challenge.

This prevents indexing files outside the project directory if malicious symlinks are present. Uses .follow_links(false) in WalkBuilder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants