Skip to content

Eraser Tool Turns into Brush When Holding Shift Key

Moderate
mohammadKarimi published GHSA-qwwr-5wq4-3596 Oct 19, 2024

Package

Riter (Windows OS)

Affected versions

<0.0.7

Patched versions

0.0.7

Description

Summary

Holding the Shift key—which is intended for drawing straight lines—causes the eraser tool to unexpectedly switch to the brush tool.

Details

Users can select either the brush or eraser tools and use the Shift key to draw straight lines. The issue arises when a user selects the eraser tool and holds down the Shift key: instead of erasing a straight line, the tool switches to the brush and draws a new line. This unexpected behavior prevents users from erasing in straight lines and disrupts the intended functionality.

PoC

  1. Launch the application on a Windows system.
  2. Press and hold the Shift key.
  3. Select the Eraser tool from the toolbar.
  4. Click and drag the mouse to eraser a line.
  5. Notice that a new line is drawn with the brush tool instead of erasing.

Impact

This is a functional bug affecting all users of the application. It hinders the ability to erase straight lines, impacting tasks that require precise editing or design adjustments.

Severity

Moderate

CVE ID

No known CVE

Weaknesses

No CWEs

Credits