2013-09-21 28 views

回答

1

我懷疑你仍然容易受到拒絕服務攻擊,如果你的Web請求解析裏面。沒有看到有問題的代碼,我不能肯定地說,你是從路徑擴展安全(例如,「../../some/secret/file」),在該說明中概述。也就是說,如果所有的文件處理由機架/ ActionDispacth做,你不路徑直接打交道,我懷疑你是安全的。

+0

我通過PARAMS [:文件] .pathfile到進口商:[ClockworkTomatoImporter](https://github.com/ravicious/tomatostats/blob/77936ccab63f6e04446bfbe5ec030018ecc190e6/app/importers/clockwork_tomato_importer.rb)<[進口商]( https://github.com/ravicious/tomatostats/blob/77936ccab63f6e04446bfbe5ec030018ecc190e6/app/importers/importer.rb),[imports_controller](https://github.com/ravicious/tomatostats/blob/77936ccab63f6e04446bfbe5ec030018ecc190e6/app/controllers/imports_controller .RB)。 –

+0

至於移動網絡請求解析:是的,這絕對是我必須做的事情。此外,一些基本的保護來解析非常大的文件。 –