Language: PHP
Label: vulnerable
CWE: CWE-29 \u2014 Path Traversal: '\..\filename'
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory.

Code:
    public function cleanBean()
    {
        parent::cleanBean();
        $this->pdfheader = purify_html($this->pdfheader);
        $this->description = purify_html($this->description);
        $this->pdffooter = purify_html($this->pdffooter);
    }