Skip to content

hardening: migrate monitor SQL helpers to prepared variants #207

@somethingwithproof

Description

@somethingwithproof

Problem

plugin_monitor still contains selected raw SQL helper usage for plugin version lookup, uninstall cleanup, and monitor-device cleanup paths.

Proposed change

  • migrate targeted db_fetch_cell() and db_execute() call sites to prepared helpers in setup.php
  • use placeholder-based IN (...) handling for multi-device cleanup
  • preserve behavior

Tests

  • add standalone regression test asserting targeted statements use prepared helpers
  • run syntax checks for touched files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions