security

Is Android M not allowing hard links?

[亡魂溺海] 提交于 2020-02-01 04:36:24
问题 I have an Android app with some C code that uses the link(2) system call to create a hard link to an existing file. When I execute the app on Android 5.0.2, this part of the app works. When I execute the exact same app on an Android-M device the link() system call returns -1 "permission denied". I notice in my log getting messages like this: 09-02 17:10:34.222 5291 5291 W ona.crackerjack: type=1400 audit(0.0:59): avc: denied { link } for name="fixed28" dev="mmcblk0p28" ino=82829 scontext=u:r

Securing elasticsearch

大兔子大兔子 提交于 2020-01-31 18:24:25
问题 I am completely new to elasticsearch but I like it very much. The only thing I can't find and can't get done is to secure elasticsearch for production systems. I read a lot about using nginx as a proxy in front of elasticsearch but I never used nginx and never worked with proxies. Is this the typical way to secure elasticsearch in production systems? If so, are there any tutorials or nice reads that could help me to implement this feature. I really would like to use elasticsearch in our

Android Encryption RSA InvalidKeyException

天涯浪子 提交于 2020-01-31 06:18:53
问题 Dears, I need help to understand why decryptString doesn't work and throw "java.security.InvalidKeyException: Need RSA private or public key". When call encrypt method, i use public key by the private key/certificate. Thanks for any help! public class KeysHandler { /*** * Generate and store in AndroidKeyStore a security KeyPair keys. * @param alias - Alias to create the key. * @return KeyPair object with: private and public key. */ public static KeyPair generateKeyPair(String alias) { KeyPair

Android Encryption RSA InvalidKeyException

扶醉桌前 提交于 2020-01-31 06:15:29
问题 Dears, I need help to understand why decryptString doesn't work and throw "java.security.InvalidKeyException: Need RSA private or public key". When call encrypt method, i use public key by the private key/certificate. Thanks for any help! public class KeysHandler { /*** * Generate and store in AndroidKeyStore a security KeyPair keys. * @param alias - Alias to create the key. * @return KeyPair object with: private and public key. */ public static KeyPair generateKeyPair(String alias) { KeyPair

using CCtray with Jenkins, while security enabled (using HTTPS)

本小妞迷上赌 提交于 2020-01-31 05:32:52
问题 I configured my Jenkins server to only use HTTPS and enabled security. As well I don't like anybody who's not logged on to see the Dashboard (even if it would be empty). Here for I disabled the 'read' access for 'anonymous'. So far all this works exactly to my likings :) But wanting to add some build notification functionality to remote clients by e.g. using something like 'CCtray' I run into trouble. The access to the https://<SERVER>/cc.xml now only works for logged in users. Where I would

JSON Web Token expiration

半城伤御伤魂 提交于 2020-01-31 03:11:09
问题 On most of the JWT (JSON Web Token) tutorial (e.g: this and this) are saying, once validated you can use the incoming token to get client information without validating it from the DB. My question is, how invalid user situation is maintained then? What I mean is, lets say a client just got a JWT token which expires in one week. But for very specific reason lets say we decided to invalidate the user, and don't want the user to access our API. But still that user has a token which is valid and

Hows does one prevent passwords and other sensitive information from appearing in an ASP.NET dump?

坚强是说给别人听的谎言 提交于 2020-01-30 15:26:28
问题 How does one prevent passwords and other sensitive data submitted to and received from ASP.NET web pages in IIS/ASP.NET dump files? Steps to reproduce Using Visual Studio 2010, create a ASP.NET MVC 3 intranet application. Configure it to use IIS 7.5. Fire it up and register an account (say bob123 as the user and Pa$$w0Rd as the password. I'm assuming that the SQL Express database is created and the site is fully functional. Using task manager, right click on the w3wp process and create a dump

Safely disable WP REST API

▼魔方 西西 提交于 2020-01-30 14:34:49
问题 I am considering to improve security of my Wordpress website, and in doing so have come across WP REST API being enabled by default (since WP 4.4 if I'm not mistaken). What is a safe way to disable it? By "safe" here I mean that it does not cause unexpected side-effects, e.g. does not break any other WP core functionality. One possible approach would be to use .htaccess rewrite rules, but surprisingly I haven't found any 'official' instructions on doing so. Any help or recommendation is

Safely disable WP REST API

三世轮回 提交于 2020-01-30 14:34:32
问题 I am considering to improve security of my Wordpress website, and in doing so have come across WP REST API being enabled by default (since WP 4.4 if I'm not mistaken). What is a safe way to disable it? By "safe" here I mean that it does not cause unexpected side-effects, e.g. does not break any other WP core functionality. One possible approach would be to use .htaccess rewrite rules, but surprisingly I haven't found any 'official' instructions on doing so. Any help or recommendation is

How Do You Secure database.yml?

喜你入骨 提交于 2020-01-30 13:59:11
问题 Within Ruby on Rails applications database.yml is a plain text file that stores database credentials. When I deploy my Rails applications I have an after deploy callback in my Capistrano recipe that creates a symbolic link within the application's /config directory to the database.yml file. The file itself is stored in a separate directory that's outside the standard Capistrano /releases directory structure. I chmod 400 the file so it's only readable by the user who created it. Is this