security

Security Sandbox Violation: Lack of Policy File Permissions

混江龙づ霸主 提交于 2020-01-11 09:35:09
问题 I'm using as3httpclientlib to post data to my web service, but I'm continually getting the following security violation. Does anyone know how to resolve this? My crossdomain.xml file is below the security violation notice. NOTE: I'm using apache to proxy requests to the web service, therefore the target url/port and the url/port serving the applet are the same -- i.e. http://192.168.100.101 . Also, the crossdomain.xml file is located in the root of the web app which serves the applet rather

How do I ensure user input is CSS and not malicious code?

天大地大妈咪最大 提交于 2020-01-11 08:29:08
问题 On my website I want to include a text box that will allow the members to change anything they want css wise on their profiles....but I don't want to wake up one morning to find my site has been hacked or someone typoed and destroyed everything or accessed things they shouldn't. Is there any easy way to verify that the text they input is css only? I saw another question on here that was similar, it had XSS cheat sheet and tips for what to disable (< and ]]> and < ![), but I don't know if that

protect users' file being accessed so only owner can access?

三世轮回 提交于 2020-01-11 06:46:11
问题 I am writing a web application in php where users can upload their own files or images, but how can I protect these files from being accessed by others other than the owner. think of dropbox, what is the mechanism to protect those files, I have tried to search but don't get anything about this. any pointers or any link to tutorials would be very useful. thanks in advance. 回答1: If you are storing images and files as binary blobs in your database, then it is simply a matter of checking

How to log user out of Symfony 2 application using it's internal handlers

假如想象 提交于 2020-01-11 06:43:55
问题 Symfony implements the functionality of logging user out and killing cookies. There is a LogoutListener which delegates those action to couple of logout handlers: CookieClearingLogoutHandler and SessionLogoutHandler . If we want to log user out of application manually, I think the best course of action would be to call those handlers and not to implement (duplicate) such low-level logic yourself. Is it possible to do so? 回答1: You can implement an extended logout-listener by overriding the

Should I release an app to the App Store with print statements in it?

时光毁灭记忆、已成空白 提交于 2020-01-11 04:58:16
问题 I intend to release my app to the App Store soon (after TestFlight). I have quite a few view controllers with print statements in them. The print statements are for testing purposes (debugger) and the user will never see them. Will it make any difference if I do or don't include the print statements inside the app once I release it? Will the print statements make any difference as far as reducing speed when switching between scenes even if by milliseconds? Can I get rejected for including

Generating CSRF tokens for multiple forms on a single page

懵懂的女人 提交于 2020-01-11 04:39:05
问题 I am currently generating a CSRF token in my forms to prevent cross-site request forgery. It looks like: <form method="post" action="action.php"> <input type="hidden" id="security_token" name="security_token" value="gTt96phAcretR99rafEjepHebrEZadEdezadagaZ3gAS5es33WReJeZaMADU2AWr" /> ... </form> The problem is that I have multiple forms on a single page. Must I create a security token for each form so security_token_1 , security_token_2 , or can I simply instead of generating the security

Adobe Socket Policy File Server Problems

我的梦境 提交于 2020-01-11 04:06:41
问题 Has anyone been able to successfully implement a service to serve the required socket policy file to FlashPlayer? I am running the Python implementation of the service provided by Adobe at http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html and using the following policy file: <?xml version="1.0" encoding="UTF-8"?> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="*" to-ports="*" secure="false"/> </cross-domain

Is explicitly clearing/zeroing sensitive variables after use sensible?

扶醉桌前 提交于 2020-01-11 00:11:09
问题 I have noticed some programs explicitly zero sensitive memory allocations after use. For example, OpenSSL has a method to clear the memory occupied by an RSA key: "Frees the RSA structure rsa. This function should always be used to free the RSA structure as it also frees sub-fields safely by clearing memory first." http://www.rsa.com/products/bsafe/documentation/sslc251html/group__COMMON__RSA__KEY__FUNCS.html#aRSA_free Where any (C/C++) program contains sensitive variables like this, should

Implications of saving session on the client with javax.faces.STATE_SAVING_METHOD

偶尔善良 提交于 2020-01-10 20:12:14
问题 My first JSF page was throwing javax.faces.application.ViewExpiredException . while I searched I got this solution which solved my problem. <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> But I am concerned about the security implication. 回答1: This doesn't save the "session" in client side at all. This only saves the JSF view state in client side. This is in JSF 2.2 always AES-encrypted with a key which is generated

Implications of saving session on the client with javax.faces.STATE_SAVING_METHOD

99封情书 提交于 2020-01-10 20:10:35
问题 My first JSF page was throwing javax.faces.application.ViewExpiredException . while I searched I got this solution which solved my problem. <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> But I am concerned about the security implication. 回答1: This doesn't save the "session" in client side at all. This only saves the JSF view state in client side. This is in JSF 2.2 always AES-encrypted with a key which is generated