Skip to content

Conversation

Zabuzard
Copy link
Member

@Zabuzard Zabuzard commented Sep 4, 2025

We recently had a case in PROD where someone posted attachment-based scam that went undetected.

The message looked like this:

scam

The reason was that our code compared file extensions case-sensitive. For example only attachments like 1.jpg are detected as image (and hence contribute to the scam check). Attachments like 1.JPG bypassed it.

Simple fix. Also added a unit test.

@Zabuzard Zabuzard self-assigned this Sep 4, 2025
@Zabuzard Zabuzard requested a review from a team as a code owner September 4, 2025 12:43
@Zabuzard Zabuzard added bug Something isn't working priority: normal labels Sep 4, 2025
Copy link

sonarqubecloud bot commented Sep 4, 2025

@Zabuzard Zabuzard merged commit 98e54b4 into develop Sep 5, 2025
11 checks passed
@Zabuzard Zabuzard deleted the bugfix/image_scam_with_uppercase branch September 5, 2025 07:04
@Zabuzard Zabuzard mentioned this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants