Company: ubs
Difficulty: medium
Selenium Java: Vulnerabilities Scraping Problem Description In this challenge, you will use the selenium web driver, HtmlUnitDriver , which uses HtmlUnit headless browser. This eliminates the need to set up browsers like Firefox, Chrome, or web driver executables like FirefoxDriver , or ChromeDriver . You are given a link to a dummy website like nvd.com or cvedetails.com which shows all the WordPress vulnerabilities for different versions in a tabular format. Scrape all the vulnerabilities of a given WordPress version. There is a class VulnerabilitiesScraper which has 2 methods: List<String> scrapeVulnerabilitiesOf(WebDriver driver, String vulnPageUrl, String wpVersion): Browse to the vulnPageUrl . Its source code structure is like website/vulnPage.html . Filter rows for the given wpVersion and collect the CVE ID column. Return a list of CVE IDs for the wpVersion . String findHighestScoredVulnerability(WebDriver driver, String vulnPageUrl, String wpVersion): Browse to the vulnPag