Skip to content

Secret service attribute search containing a '|' (vertical bar) returns all entries #7776

@adamklo

Description

@adamklo

Overview

A secret-tool search containing a vertical bar returns every secret from the database.
The vertical bar needs to be at the begging or end of the query, otherwise the bug doesn't happen.

Steps to Reproduce

  1. Create a database with two secrets. One with an attribute attr=1, and the other one with attr=2.
  2. Enable secret service integration.
  3. Run secret-tool search --all attr "abc|"

Expected Behavior

secret-tool should return nothing, since there is no secret with attr equal to abc|. That's what gnome-keyring does in the same case.

Actual Behavior

secret-tool returns there two secrets.

Context

KeePassXC - Version 2.7.0
Revision: d7a9ef4

Operating System: Linux
Desktop Env: KDE
Windowing System: X11

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions