Language: PHP
Label: vulnerable
CWE: CWE-434 \u2014 Unrestricted Upload of File with Dangerous Type
The product allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment.

Code:
    public function getPairs($data)
    {
        $limit = $data['per_page'] ?? 30;
        [$sql, $params] = $this->getSearchQuery($data, "SELECT c.id, CONCAT_WS('', c.first_name,  ' ', c.last_name) as full_name");
        $sql = $sql . ' LIMIT ' . $limit;

        return $this->di['db']->getAssoc($sql, $params);
    }