security

What are the implications of disbling websecurity in a blackberry10 app?

会有一股神秘感。 提交于 2019-12-24 04:16:10
问题 In another question dealing with a bug in blackberry10 that denies cross origin XHR calls, it is proposed to get around the issue by disabling web security. But what does disabling web security really imply here? Am I going to torture small harmless woodland creatures if I use this? Seriously though, does doing this expose my app to additional security risks beyond those introduced when adding the popular wildcard access uri="*" or access origin="*" line in my config.xml for blackberry10?

How to grant dependent lib in jnlp file all permissions?

不羁的心 提交于 2019-12-24 04:13:25
问题 I have a serious problem with Java Web Start that I can't get my head around. The situation is the following: I have a JavaFX app, written Java8, that I want to deploy using Java WebStart. Until recently I used HTTP for communications with a server, and everthing worked fine. I could deploy the app using Web Start embedded in the browser or as a standalone app. However I have now changed the communication to use WebSockets. For this I am currently using the tyrus implementation. And now comes

How do I set the HttpOnly flag on JSF/Richfaces

六月ゝ 毕业季﹏ 提交于 2019-12-24 04:12:33
问题 I'd like to add the HttpOnly flag to JSF/richfaces cookies, especially the session cookie, to up the level of security on my web app. Any ideas? 回答1: There may be something that allows you to do this in your servlet engine. This is part of the Servlet 3.0 spec which is yet to be released. 回答2: FacesContext facesContext = FacesContext.getCurrentInstance().getFacesContext(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); response.addHeader(

How do I set the HttpOnly flag on JSF/Richfaces

China☆狼群 提交于 2019-12-24 04:12:00
问题 I'd like to add the HttpOnly flag to JSF/richfaces cookies, especially the session cookie, to up the level of security on my web app. Any ideas? 回答1: There may be something that allows you to do this in your servlet engine. This is part of the Servlet 3.0 spec which is yet to be released. 回答2: FacesContext facesContext = FacesContext.getCurrentInstance().getFacesContext(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); response.addHeader(

iPhone4 SecItemCopyMatching returns -25300 after reboot

こ雲淡風輕ζ 提交于 2019-12-24 04:03:07
问题 My method: +(SecKeyRef)getKeyByTagWithoutAlert:(NSString *)keyTag status:(OSStatus *) status{ *status = noErr; SecKeyRef key = NULL; NSMutableDictionary *queryKey = [[NSMutableDictionary alloc] init]; // Set the key query dictionary. [queryKey setObject:(id)kSecClassKey forKey:(id)kSecClass]; [queryKey setObject:[SecKeyUtility getDataByTag:keyTag] forKey:(id)kSecAttrApplicationTag]; [queryKey setObject:(id)kSecAttrKeyTypeRSA forKey:(id)kSecAttrKeyType]; [queryKey setObject:[NSNumber

Secure uploading file [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-24 03:58:10
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I have file uploaded system in my php project. What I make at uploading: 1) Check file extension and file mime type. 2) If extension and mime type are allowed types, I save file outside of public_html directory and then, I give the opportunity to users, download file so: if

Restrict python script locations

岁酱吖の 提交于 2019-12-24 03:54:11
问题 I'm wondering if there is a way of controlling from where python scripts are allowed to run? So that only scripts in certain locations are allowed to be run by python. We are running a windows environment with windows domain controllers. The reason being as one step of locking down python in an environment with strict security requirements. 回答1: Given a set of directories whose contents should be excluded from execution by the Python interpreter - maybe you could strip the execute execute

How to share WCF client credentials in ASP.NET amongst role instances in Azure?

断了今生、忘了曾经 提交于 2019-12-24 03:49:30
问题 This problem is a continuation of the caching of ChannelFactory in a session problem here: Caching WCF ChannelFactory or client proxy in ASP.NET on Azure? How can I share the credentials (UserNameCredentials) which are therefore not being shared now, and somehow have to be distributed across the split instances of WCF clients. The obvious option is to store the encrypted credentials in a cache? Is it a good idea? Is there any other way to do it? 来源: https://stackoverflow.com/questions

Is mozFullPath in Firefox during file upload a security risk?

Deadly 提交于 2019-12-24 03:47:10
问题 I am working on a little photo app where the user selects a local file and it is pushed into a canvas with window.URL.createObjectURL(file) - really basic stuff. During testing I briefly dumped the contents of the File array to the console - just to make sure I was getting what I want. I am using Firefox 31.0 (not Iceweasel) and Chrome 34.0.1847.116 (not Chromium) on Debian 7 I am calling the array like this: var file = evnt.target.files[0]; if (file) { console.log('file'); // other stuff }

jsp autocomplete=“off” not working in Chrome or Firefox

白昼怎懂夜的黑 提交于 2019-12-24 03:44:10
问题 I've made a modification to the following, to prevent a users username appearing in the login box. <div class="row clearfix"> <label for="j_username">Username:</label> <input tabindex="1" type="text" name="j_username" id="j_userName" class="text" value='<c:if test="${param.login_error == 'authFailure'}">${SPRING_SECURITY_LAST_USERNAME}</c:if>' /> <p class="forgot-password"> <a tabindex="5" href="forgot-username-password.htm">Forgot your username or password?</a></p> </div> <input tabindex="1"