• •    

信息存储技术学术会议+26 一种网盘认证协议的分析与验证

刘璐,张灿,张全新,李元章,谭毓安   

  1. 北京理工大学
  • 收稿日期:2016-11-23 修回日期:2016-11-22 发布日期:2016-11-22
  • 通讯作者: 张全新

Analysis and Verification of a Network Disk Authentication Protocol

  • Received:2016-11-23 Revised:2016-11-22 Online:2016-11-22

摘要: 摘 要: 现今,各大网盘服务商都为开发者提供OAuth协议的接口,第三方应用可以利用官方提供的API方便的访问用户的资源。但在嵌入式环境下,要想利用有限的硬件资源支持完整的web浏览器比较困难,需要支持的文件类型以及协议都比较庞大,所以本文提出了一种利用较小资源实现OAuth协议与网盘进行交互的方案。本文首先在Android平台上使用新浪微盘提供的API实现了具有上传下载微盘文件功能的应用程序,并使用Burp Suite抓取HTTPS数据包的功能,获取了用户授权Android应用程序访问新浪微盘的认证过程及应用程序上传下载文件过程的流量。其次,通过抓取的数据包分析其详细的认证流程,以及上传下载文件的流程。最后,利用C语言在Linux环境下验证其认证协议,取得token并实现上传下载文件以及获取文件列表的功能。

关键词: OAuth, 网盘, HTTPS, RSA, 嵌入式

Abstract: Abstract: Nowadays, the developers can easily access the network disk by OAuth protocol interfaces provided by the major cloud storage service providers. But on embedded system, it’s hard to build a complete web browser using its limited hardware resource because that a full functioning web browser needs to support a wide variety of file formats and protocols. So, this article propose a method that achieves interaction with network disk using OAuth with smaller resources. First of all, this article build an Android application that implements the function of upload and download file to and from the Sina Vdisk using the API Sina provides for the developers. Secondly, using the Proxy component provided by Burp Suite, we fetched the HTTPS packets transferred between the Android application and Sina Vdisk server. Thirdly, we analyze the authorize process and the file upload and download process by those packets we crawled. Finally, we validate the authorize process in the Linux environment using C and then we get the access token and use it to implement the function of upload file and download file and list files on the network disk server.

Key words: OAuth, network disk, HTTPS, RSA, embedded system

中图分类号: