Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 273 Bytes

TaintedSystemSecret.md

File metadata and controls

16 lines (12 loc) · 273 Bytes

TaintedSystemSecret

Emitted when data marked as a system secret is detected somewhere it shouldn’t be.

<?php

/**
 * @psalm-taint-source system_secret
 */
function getConfigValue(string $data) {
    return "$omePa$$word";
}

echo getConfigValue("secret");