security - Whats a valid strategy for a secure image upload from a flash client? -
i'm creating flash application post images url saving disk/display later. wondering suggested strategies making secure enough upload verified coming application , not random form post.
is reliable enough check referring location realizing don't need bulletproof security, or perhaps setting authentication headers better strategy though seems unreliable have read.
the application , server script reside on same domain , in java - there way check 'session' or that?
another thought had sort of simple hashed key type system, hard-code key flash application , pass server based on - server know key , able verify if value passed based on that?
thanks advice , examples - naive in area -b
the app public app, authenticating users not option. after more research thinking using hard coded salt key on both ends, sending md5 hash of base64 encoded image bytearray+salt matched on server side. thoughts on strategy?
your question can generalized 'how can sure image uploaded through (flash) application?'. answer is, can't. no matter do, determined person can reverse engineer application or watch http traffic, , use information create client (applet/silverlight/html form/standalone program) upload files server. @ best, can obscure make things difficult. that's not security.
instead, should asking 'how can sure image has been uploaded authorized person?'. 1 possible. user has authenticate on https, , upload file. read owasps guide session management more information on how solve problem.
Comments
Post a Comment