'Potentially dangerous' flaw could allow ransomware attacks on Microsoft SharePoint and OneDrive