security

Secure Java Web Services

荒凉一梦 提交于 2020-01-01 05:47:07
问题 I am trying to figure out which framework/API would be best for implementing my web services (Java EE). The data being passed back and forth between client and web container needs to be super-secure, and so I'm even thinking of encrypting my data before it even gets wrapped up in a SOAP (or the secure equivalent to SOAP) message, regardless of what security services the framework provides me with. I see there is the so-called XWS-Security but it seems that it is for securing legacy JAX-RPC

Pyramid.security: Is getting user info from a database with unauthenticated_userid(request) really secure?

不羁的心 提交于 2020-01-01 05:41:07
问题 I'm trying to make an accesible cache of user data using Pyramid doc's "Making A “User Object” Available as a Request Attribute" example. They're using this code to return a user object to set_request_property: from pyramid.security import unauthenticated_userid def get_user(request): # the below line is just an example, use your own method of # accessing a database connection here (this could even be another # request property such as request.db, implemented using this same # pattern).

Running docker securely

夙愿已清 提交于 2020-01-01 05:29:27
问题 I understand that the docker daemon requires to runs as root so I'm told this can cause some security implications such as if the container were compromised, attackers can make changes to the host's system files. What precautions can I take to mitigate damage in the case of an attack? Is there a practice that I should be aware when running the docker daemon? I've thought about having a vagrant to up a vm and have docker run in the vm instead. 回答1: The main source of information regarding

Behaviour of SecureRandom

心已入冬 提交于 2020-01-01 05:10:13
问题 Even though after following many articles on SecureRandom , I encountered a doubt with the usage of SecureRandom Security API in Java. In the below example . public class SecureRandomNumber { public static void main(String[] args) throws NoSuchAlgorithmException { TreeSet<Integer> secure = new TreeSet<Integer>(); TreeSet<Integer> unSecure = new TreeSet<Integer>(); SecureRandom sr = new SecureRandom(); byte[] sbuf = sr.generateSeed(8); ByteBuffer bb = ByteBuffer.wrap(sbuf); long d = bb.getLong

'UnauthorizedAccessException' - 'Global\.net clr networking'

邮差的信 提交于 2020-01-01 04:58:26
问题 I'm testing my application under the user Guest. It crashes with the following error. 'UnauthorizedAccessException' - 'Global.net clr networking' Now, I know I can edit the security policy on the machine to allow CLR code running under guest to be trusted, but what should one do on a commercial app? (Sign, and add CAS attributes?) I'm currently reading the whole security section, but I'm in a time pinch, so any pointers in the right direction will be appreciated. EDIT: I've traced the problem

PHP: Remember Me and security?

你。 提交于 2020-01-01 04:46:10
问题 During the time I've spent taking breaks from learning how PHP supports Unicode I've been delving into making my "Remember Me" cookies a bit more secure. However there are a few things I don't understand and a few of my own musings I'd like some suggestions and opinions on. 1) Is there any method to adopting a "Remember Me" feature that doesn't involve cookies? Curious since there are obvious security flaws in storing authentication cookies. Not that there aren't security risks in just about

Data Encryption

*爱你&永不变心* 提交于 2020-01-01 04:37:05
问题 A database that stores a lot of credit card information is an inevitable part of the system we have just completed. What I want though is ultimate security of the card numbers whereby we setup a mechanism to encrypt and decrypt but of ourselves cannot decrypt any given number. What I am after is a way to secure this information even down at the database level so no one can go in and produce a file of card numbers. How have others overcome this issue? What is the 'Standard' approach to this?

Collecting Credit Card Information - not to collect payment

China☆狼群 提交于 2020-01-01 04:37:05
问题 I am working in PHP on a Linux server with MySQL. I have a requirement (that I have attempted to talk them out of) to collect credit card information from users so that our company can use the card numbers to hold hotel rooms for a conference. We will not be charging the cards ourselves at all, but instead just sending them to the hotel. I then need to be able to download a CSV file and each time someone signs up an email to go to the admin with all the information. I tried to explain that

What protects Android AccountManager passwords from being read by other apps?

混江龙づ霸主 提交于 2020-01-01 04:19:39
问题 I'm writing 1) an app that stores a username and password in the AccountManager, and 2) a separate background Service app that accesses those credentials to login to my servers, etc. Playing around with this, I find I'm able to call AccountManager.getPassword(account) from the Service (app 2) to access the type of accounts I've add to the AccountManager using the other app (app 1). Due to this, I'm starting to wonder what stops an arbitrary malicious app from 1) including the fields in the

What protects Android AccountManager passwords from being read by other apps?

倖福魔咒の 提交于 2020-01-01 04:19:05
问题 I'm writing 1) an app that stores a username and password in the AccountManager, and 2) a separate background Service app that accesses those credentials to login to my servers, etc. Playing around with this, I find I'm able to call AccountManager.getPassword(account) from the Service (app 2) to access the type of accounts I've add to the AccountManager using the other app (app 1). Due to this, I'm starting to wonder what stops an arbitrary malicious app from 1) including the fields in the