Skip to content

Conversation

@JDeep1234
Copy link

Fixes false positive issue for Spotify username detection reported in Issue #2547.

Problem: Spotify was using status_code detection which caused false positives for non-existent usernames.

Solution: Changed detection method from status_code to message-based detection to properly identify Page not found responses for non-existent users.

Changes:

  • Changed errorType from status_code to message
  • Added errorMsg for Page not found
  • Updated username_claimed test value

Testing: Verified with 3 test scenarios - all passing:

  1. Non-existent user correctly returns NOT FOUND
  2. User spotify correctly returns FOUND
  3. Test username correctly returns FOUND

Fixes #2547

@github-actions
Copy link
Contributor

Automatic validation of changes

Target F+ Check F- Check
Spotify ❌   Fail ✔️   Pass

Failures were detected on at least one updated target. Commits containing accuracy failures will often not be merged (unless a rationale is provided, such as false negatives due to regional differences).

- Changed errorType from 'status_code' to 'message'
- Added errorMsg check for 'Page not found'
- Updated username_claimed to 'spotify' (verified working)

Spotify returns HTTP 200 for both valid and invalid users, then
shows 'Page not found' in the HTML for non-existent profiles.
The previous status_code check caused false positives.

Tested with:
- Non-existent user: Correctly returns NOT FOUND
- Real user 'spotify': Correctly returns FOUND
- Verified against username_claimed

Fixes: sherlock-project#2547
@JDeep1234 JDeep1234 force-pushed the fix/spotify-false-positive branch from 25ea5a9 to ba361dc Compare October 20, 2025 15:48
@github-actions
Copy link
Contributor

Automatic validation of changes

Target F+ Check F- Check
Spotify ❌   Fail ✔️   Pass

Failures were detected on at least one updated target. Commits containing accuracy failures will often not be merged (unless a rationale is provided, such as false negatives due to regional differences).

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.

False Positive Remediation

1 participant