security

SSL Session reuse with SChannel (Windows)

三世轮回 提交于 2020-01-25 10:16:26
问题 I have a program that use schannel.dll to make a SSL connection to remote server. But I'd like to disconnect from server often and reconnect without the need to renegotiate shared key again. I know that SSL support this, but don't know how to make it with SChannel. Can you help me? Here are some links that can help: Creating a Secure Connection Using Schannel: http://msdn.microsoft.com/en-us/library/aa374782(VS.85).aspx SSL session reuse - how to find if supported?: http://royontechnology

How to set up csrf protection in jsf2.2 web application?

为君一笑 提交于 2020-01-25 10:14:33
问题 I have a jsf 2.2 web application without using the spring framework. I searched on google and found out that jsf 2.2 provides out of the box csrf protection and you just have to enable it . So I did that following this link. Jsf2.2 csrf demo And added this in my faces.config.xml file <protected-views> <url-pattern>/csrf_protected_page.xhtml</url-pattern> </protected-views> But how to set up url-pattern for all my .xhtml pages I have tried: <url-pattern>/*</url-pattern> <url-pattern>/*.xhtml<

Forcing HttpClient to enforce TSL higher than 1.0

风格不统一 提交于 2020-01-25 09:20:07
问题 My WPF app connects to an Azure Web API. The endpoints will be configured to deny access to any non secured (HTTP) or weakly secured (HTTPS with TLS 1.0 or older) requests. But I also want my App to never even try sending non secured or weakly secured requests. Microsoft recommends here and there to target the Framework 4.7 and to leave ServicePointManager.SecurityProtocol to its default value so that the OS determines what protocol to use. The second article I mentioned also indicates

Implementing Authentication in IgniteDB

烂漫一生 提交于 2020-01-25 07:53:10
问题 I just configured authentication in IgniteDB ( a specific server, not a localhost ) https://apacheignite.readme.io/docs/advanced-security However I encountered some issue while trying to connect. Where should I provide the credential? TcpDiscoverySpi spi = new TcpDiscoverySpi(); TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryMulticastIpFinder(); String ipList = appConfig.getIgniteIPAddressList(); List<String> addressList= Arrays.asList(ipList.split(";")); ipFinder.setAddresses(addressList)

How to send JWT correctly without being exposed

孤者浪人 提交于 2020-01-25 07:37:10
问题 So I am not sure if my question fits in really in stackoverflow or not but I would give it a shot and try to see if my knowledge of JWT is actually correct or am I out of the loop totally. So what I have created is an server API that reads POST requests that is being sent from a client app and that returns Bearer Token which is needed to be able to access rest of the API's that I have created. So far I have a server api that created Bearer token IF the username and password matches the login.

Asp.Net MVC4 stopping people requesting or posting data to my API

丶灬走出姿态 提交于 2020-01-25 07:36:06
问题 I want to be able to use AJAX to Get/Post to an API controller in my MVC4 application. However, I don't want anyone to be able to setup a web page and get/post to the controller - only from web pages delivered from my server. So, should I just use a normal controller and return data, rather than an API controller? (or have I misunderstood that using the API controller opens up the web application to any Get/Post?) Thanks, Mark 回答1: This is a possible duplicate of my question here. In a

.Net Core Security Trimming using Authorized Attribute on Controller Methods

吃可爱长大的小学妹 提交于 2020-01-25 06:50:21
问题 We just upgraded to .NET Core, and i'm trying to get things up and running with as little refactor as possible. All of our Security is handled by custom attribute decorations on controller methods. Kinda like this: [CustomAuthorize(Roles = "VIEWONLY, DEVELOPER, ADMIN, CHIEFADMIN") public ActionResult GetPage(string id){ return view; } Previously i had a custom HTMLHelper helping me do security trimming on Menu Links. It would check the controller action, and return true/false. Most of the

jQuery variable name appended with a large number

不羁岁月 提交于 2020-01-25 06:32:04
问题 I often see in my code I am loading from my company's media central that jQuery is not available in the console normally. (No $ and jQuery ) But sometimes, to those elements to which jQuery is attached, it has a long number with it. jQuery18306575689211022109_1378907534666 What is the purpose of doing this? Security? Also, jQuery is sometimes available directly in the console, but only with the above numbers. I am therefore unable to debug my apps in console, where I need to query using

jQuery variable name appended with a large number

笑着哭i 提交于 2020-01-25 06:32:04
问题 I often see in my code I am loading from my company's media central that jQuery is not available in the console normally. (No $ and jQuery ) But sometimes, to those elements to which jQuery is attached, it has a long number with it. jQuery18306575689211022109_1378907534666 What is the purpose of doing this? Security? Also, jQuery is sometimes available directly in the console, but only with the above numbers. I am therefore unable to debug my apps in console, where I need to query using

Change SSL protocol version while reusing session

扶醉桌前 提交于 2020-01-25 05:31:08
问题 I'm using ssl3 to connect to server. When the -change_session_version option is specified with the -reconnect , I want the session protocol to change to SSLv2 from SSLv3 This is my command: apps/openssl s_client -connect 10.102.113.3:443 -reconnect -change_session_version -ssl3 Now, I know that I should have either this code: if(change_session_version) s->session->ssl_version = SSL2_VERSION; Or this code: if(change_session_version) s->version = SSL2_VERSION; I don't know where to put this