microsoft / oauth2-useragent

Microsoft OAuth 2.0 User Agent library for Java. Provides classes to facilitate the implementation of "4.1. Authorization Code Grant" from RFC 6749.
Other
35 stars 22 forks source link

File Separator #45

Open QiAnXinCodeSafe opened 5 years ago

QiAnXinCodeSafe commented 5 years ago

Hi : We found a problem about File Separator in oauth2-useragent.Different operating systems use different characters as file separators. For example, Microsoft Windows systems use "", while UNIX systems use "/". When applications have to run on different platforms, the use of hardcoded file separators can lead to incorrect execution of application logic and potentially a denial of service. com.microsoft.alm.oauth2.useragent.JavaFxProvider image advice: use ”File.separator“ replace “/”