security

How to check revocation status of X509Certificate chain using JAVA?

落花浮王杯 提交于 2019-12-23 02:32:36
问题 I am having a chain of X509Certificates starting with user certificate and ending with trusted CA certificate. For the test, I am experimenting with Google certificates. I want to check the revocation status of every certificate in Certificate chain. I am using following code: public static boolean isCertChainValid(ArrayList<X509Certificate> certificateList) { try { CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509"); CertPath certPath = certificateFactory

What is “bytesToSign” in Google Cloud Security Products signBlob?

有些话、适合烂在心里 提交于 2019-12-23 02:31:26
问题 I'm reading the documentation for Cloud Identity and Access Management Method: projects.serviceAccounts.signBlob. I've got it figured out except for the body, which is { "bytesToSign": string } The documentation says that this should be The bytes to sign. A base64-encoded string. Gosh, how helpful! Can anyone explain what bytesToSign is? What do I put there? The service account private key? 回答1: The Google Cloud Platform (GCP) IAM API method projects.serviceAccounts.signBlob allows you to

How do I behave responsibly when fetching a URL provided by user?

与世无争的帅哥 提交于 2019-12-23 02:31:16
问题 What problems am I likely to face / what should I consider? I'm starting from a point of rate-limiting per user, maybe overall, possibly per domain. I guess I'll parse_url(), make sure I set reasonable timeouts, etc. Is there a big class of security hole I need to watch out for? 回答1: Is there a big class of security hole I need to watch out for? yes! idk if it's big, but for example: you probably don't want to accept file:// url's (for example, would you want to accept file:///etc/passwd ?

Security of plain-text passwords in windows command-prompt

拜拜、爱过 提交于 2019-12-23 02:19:07
问题 This is a question with a rather small scope, but I'm running a lot of windows command prompt commands that involve using the admin password. I can either have part of the command be "/user:administrator /password:examplepassword", where examplepassword is in plaintext, or I can just have "/user:administrator", and it prompts me for the password, which I then enter masked ( * ** * ** * ). So, my question is simply this: is entering the password in the plaintext secure? (obviously besides the

Security of plain-text passwords in windows command-prompt

早过忘川 提交于 2019-12-23 02:19:02
问题 This is a question with a rather small scope, but I'm running a lot of windows command prompt commands that involve using the admin password. I can either have part of the command be "/user:administrator /password:examplepassword", where examplepassword is in plaintext, or I can just have "/user:administrator", and it prompts me for the password, which I then enter masked ( * ** * ** * ). So, my question is simply this: is entering the password in the plaintext secure? (obviously besides the

Filtering and Permissions in Firebase

偶尔善良 提交于 2019-12-23 02:07:17
问题 I asked this question about my Firebase implementation. Essentially, I was trying to structure my Firebase database so that I could have a collection of objects, with some users accessing a subset of these objects. In my example, I have tasks. Multiple users will use this database, and per Firebase's suggestion, all the tasks for all users are flattened as children of one parent node. Each user can access their own tasks, indicated by a creatorId in a task object. Perhaps in the future

x-frame-option SAMEORIGIN and clickjacking in ASP.NET

依然范特西╮ 提交于 2019-12-23 02:05:32
问题 The application had problems with allowing to be loaded into iframe. I have read a lot about it (and clickjacking). As it is necessary to load a page into the iframe withing the same origin, I have come to the following solution: Add the following to the global.asax file HttpContext.Current.Response.AddHeader("x-frame-options", "SAMEORIGIN") However, I know that not all browsers support this header. So, I want to add some additional javascript sollution. As I am not expert in javascript, I

Spring Security RememberMe success handler or url filtering

你。 提交于 2019-12-23 02:03:03
问题 I am using Spring Security with a login page and a remember-me filter. The remember-me filtering can happen on any page of the application. But I want the same behaviour both when the user is authenticated from login page and from the cookie: I want to set some user information in session I want to redirect the user to the home page (always-use-default-target="true") I have seen that the success-handler for the remember-me tag is supported by Spring Security since the 3.1.0 (https://jira

Fix for Security “Crypto” on Nougat does not work for Pie

扶醉桌前 提交于 2019-12-23 02:02:45
问题 A user run my application in Android Pie, he got the crash.There was fix for Android N (fix from varotariya vajsi): SecureRandom sr = SecureRandom.getInstance("SHA1PRNG", new CryptoProvider()); ... public final class CryptoProvider extends Provider { /** * Creates a Provider and puts parameters */ public CryptoProvider() { super("Crypto", 1.0, "HARMONY (SHA1 digest; SecureRandom; SHA1withDSA signature)"); put("SecureRandom.SHA1PRNG", "org.apache.harmony.security.provider.crypto.SHA1PRNG

Spring Security RememberMe success handler or url filtering

六眼飞鱼酱① 提交于 2019-12-23 02:02:16
问题 I am using Spring Security with a login page and a remember-me filter. The remember-me filtering can happen on any page of the application. But I want the same behaviour both when the user is authenticated from login page and from the cookie: I want to set some user information in session I want to redirect the user to the home page (always-use-default-target="true") I have seen that the success-handler for the remember-me tag is supported by Spring Security since the 3.1.0 (https://jira