1. Secure web-service for file uploading
- Subjects
file uploading ,загÑÑзка Ñайлов ,ÑайловÑй ÑеÑÐ²ÐµÑ ,JWT ,file server ,security ,безопаÑноÑÑÑ ,LUA ,nginx - Abstract
Рданной ÑабоÑе ÑаÑÑмаÑÑиваеÑÑÑ Ð¿Ñоблема безопаÑной загÑÑзки Ñайлов на веб-ÑеÑвеÑ, а именно пÑовеÑки авÑоÑизаÑии полÑзоваÑелей, оÑпÑавлÑÑÑÐ¸Ñ Ð·Ð°Ð¿ÑоÑÑ Ð½Ð° загÑÑзкÑ. РкаÑеÑÑве ÑеÑÐµÐ½Ð¸Ñ Ð¿ÑедлагаеÑÑÑ Ð¸ÑполÑзоваÑÑ Ð¼ÐµÑ Ð°Ð½Ð¸Ð·Ð¼ авÑоÑизаÑии Ñ Ð¸ÑполÑзованием Ñокена JWT, коÑоÑÑй вÑпÑÑкаеÑÑÑ Ð½Ð° ÑÑоÑоне пÑиложениÑ, обеÑпеÑиваÑÑего инÑеÑÑÐµÐ¹Ñ Ð´Ð»Ñ Ð·Ð°Ð³ÑÑзки. ÐÐ»Ñ Ð¿ÑогÑаммной ÑеализаÑии ÑеÑвиÑа загÑÑзки иÑполÑзÑеÑÑÑ ÑзÑк пÑогÑаммиÑÐ¾Ð²Ð°Ð½Ð¸Ñ Lua, в каÑеÑÑве веб-ÑеÑвеÑа Ð´Ð»Ñ Ð·Ð°Ð³ÑÑзки пÑедлагаеÑÑÑ Ð¸ÑполÑзоваÑÑ nginx. Ð ÑазÑезе пÑедложенного ÑеÑÐµÐ½Ð¸Ñ Ð¾Ð¿Ð¸ÑÑваеÑÑÑ ÑеализованнÑй Ð¼ÐµÑ Ð°Ð½Ð¸Ð·Ð¼ загÑÑзки Ñайлов и пÑовеÑки Ñокена. РаÑÑмаÑÑиваеÑÑÑ Ð¿ÑинÑип ÑоÑмиÑÐ¾Ð²Ð°Ð½Ð¸Ñ JWT и ÑазлиÑнÑе алгоÑиÑмÑ, иÑполÑзÑÑÑиеÑÑ Ð´Ð»Ñ ÐµÐ³Ð¾ подпиÑи. ÐÑоведÑн анализ ÑÑÑекÑивноÑÑи иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿ÑогÑÐ°Ð¼Ð¼Ñ Ð½Ð° ÑзÑке Lua на базе веб-ÑеÑвеÑа nginx Ñ ÑÑÑÑом его аÑÑ Ð¸ÑекÑÑÑÑ Ð¸ пÑинÑипов ÑабоÑÑ. С ÑелÑÑ Ð´Ð°Ð»ÑнейÑего ÑÑÑекÑивного иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ ÑеÑениÑ, пÑоведÑн анализ возможнÑÑ Ð¿Ñоблем â ÑабоÑа Ñ Ð½ÐµÑколÑкими пÑиложениÑми, безопаÑÐ½Ð°Ñ Ð¿ÐµÑедаÑа пÑиваÑного клÑÑа, ÑазвÑÑÑÑвание пÑи помоÑи ÑÑедÑÑв виÑÑÑализаÑии â и пÑедÑÑÐ°Ð²Ð»ÐµÐ½Ñ Ð²Ð°ÑианÑÑ Ð¸Ñ ÑеÑениÑ., The given work considers the problem of secure file uploading to the web server. The main point of this problem is user authorization when upload request comes to the server. Proposed solution is to use JSON Web Token (JWT), issued by application that owns uploading interface. The software part was developed on Lua. This part is responsible for JWT authentication and file uploading. The script is designed for use based on nginx. In the main part the implemented mechanism of file uploading and JWT authentication is described. The work covers mechanism of JWT creation and algorithms that are used for its signature. The analysis of the efficiency of using a program in the Lua language based on the nginx web server, considering its architecture and operating principles, is carried out. To make further implementation of the solution more efficiency the analysis of possible problems is carried out. Following problems were discussed with proposed solutions: work with multiple applications, secure transfer of private key, deployment using virtualization tools.
- Published
- 2021
- Full Text
- View/download PDF