ownCloud contains a flaw that allows a reflected cross-site scripting (XSS) attack. This flaw exists because the application does not validate the 'dir' and 'file' parameters upon submission to the /apps/files_pdfviewer/viewer.php script. This may allow an attacker to create a specially crafted request that would execute arbitrary script code in a user's browser within the trust relationship between their browser and the server.