sherlock icon indicating copy to clipboard operation
sherlock copied to clipboard

Fix dailykos F+

Open dollaransh17 opened this issue 2 months ago • 16 comments

dailykos uses CloudFront geo-restrictions that return 403 errors for blocked regions, causing false positives in username detection. Added comment to document this known issue.

dollaransh17 avatar Oct 03 '25 17:10 dollaransh17

Automatic validation of changes

Target F+ Check F- Check
dailykos :heavy_check_mark:   Pass :heavy_check_mark:   Pass

github-actions[bot] avatar Oct 03 '25 17:10 github-actions[bot]

Good catch. One of the downfalls of message checks.

Are you in an allowed region or a blocked one? Could be useful in validating alternatives to eliminate it by the 403, as well.

ppfeister avatar Oct 03 '25 20:10 ppfeister

Good catch. One of the downfalls of message checks.

Are you in an allowed region or a blocked one? Could be useful in validating alternatives to eliminate it by the 403, as well.

Sir , I'm in a blocked region (testing from India/Asia) , while testing endpoint got , Probe URL also returns 403 with geo-block message curl -k "https://www.dailykos.com/signup/check_nickname?nickname=testuser" Returns: "The Amazon CloudFront distribution is configured to block access from your country"

dollaransh17 avatar Oct 03 '25 20:10 dollaransh17

plz take the further actions

dollaransh17 avatar Oct 04 '25 13:10 dollaransh17

It hasn't even been 24hr since my last comment, people have jobs

ppfeister avatar Oct 04 '25 19:10 ppfeister

It hasn't even been 24hr since my last comment, people have jobs

Sorry sir , if i have offended u ...

dollaransh17 avatar Oct 04 '25 20:10 dollaransh17

No worries, things just take time

Could you checkout the feat/multiple-types branch found in #2597 and try this command?

poetry run sherlock --site dailykos uirgheerig blue --local --print-all

Attempting an alternative resolution for this issue that may help with other sites as well. If this works, I'll be reverting the dailykos change in that PR so you can make the site change yourself with the new feature (and get credit for hacktoberfest).

ppfeister avatar Oct 04 '25 21:10 ppfeister

No worries, things just take time

Could you checkout the feat/multiple-types branch found in #2597 and try this command?

poetry run sherlock --site dailykos uirgheerig blue --local --print-all

Attempting an alternative resolution for this issue that may help with other sites as well. If this works, I'll be reverting the dailykos change in that PR so you can make the site change yourself with the new feature (and get credit for hacktoberfest).

Successfully tested the feat/multiple-types branch!

Command executed: poetry run sherlock --site dailykos uirgheerig blue --local --print-all Output: [*] Checking username uirgheerig on:

[-] dailykos: Not Found!

[*] Checking username blue on:

[-] dailykos: Not Found!

[*] Search completed with 0 results So , sir the alternative solution works perfectly . No 403 geo-restriction errors from my blocked region (India). Both test usernames correctly returned "Not Found!" instead of false positives.

dollaransh17 avatar Oct 04 '25 21:10 dollaransh17

could this get a pr?

dollaransh17 avatar Oct 04 '25 21:10 dollaransh17

Merged #2597 into master (without dailykos).

If you could git reset --hard 1d2c4b134f8125c4fdacc3d7cc107ec442832f33 and then simply change the errorType to "errorType": ["message", "status_code"] instead of "errorType": "message", that should be good!

Once you make the change and commit, you can overwrite the branch on this PR by git push --force-with-lease

ppfeister avatar Oct 04 '25 21:10 ppfeister

(some of the automatic tests here will probably fail, that is expected with this change ---- no worries)

ppfeister avatar Oct 04 '25 21:10 ppfeister

Automatic validation of changes

Target F+ Check F- Check
Roblox :x:   Fail :heavy_check_mark:   Pass
dailykos :heavy_check_mark:   Pass :heavy_check_mark:   Pass
SlideShare :x:   Fail :heavy_check_mark:   Pass
threads :x:   Fail :heavy_check_mark:   Pass
CyberDefenders :heavy_check_mark:   Pass :heavy_check_mark:   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).

github-actions[bot] avatar Oct 04 '25 21:10 github-actions[bot]

Huh. They all worked. Even better.

Anyways, LGTM! Merging into master now

ppfeister avatar Oct 04 '25 21:10 ppfeister

(some of the automatic tests here will probably fail, that is expected with this change ---- no worries)

ok sir , i have done the changes , as told

dollaransh17 avatar Oct 04 '25 21:10 dollaransh17

Hm. Actually... minor hold up.

This will likely break existing installations. We should push a new version before merging this. Let me make a few changes and we'll be pushing 0.17.0 or 0.16.1 shortly. This will be merged alongside.

Tagging this as accepted though so it's counted by hacktoberfest while pending that change.

ppfeister avatar Oct 04 '25 21:10 ppfeister

Hm. Actually... minor hold up.

This will likely break existing installations. We should push a new version before merging this. Let me make a few changes and we'll be pushing 0.17.0 or 0.16.1 shortly. This will be merged alongside.

Tagging this as accepted though so it's counted by hacktoberfest while pending that change.

Thank You sir for guiding me , looking forward to seeing this in v0.17.0 and thank you for marking it as hacktoberfest-accepted

dollaransh17 avatar Oct 04 '25 21:10 dollaransh17