security

Security & TLS handshake when client is authenticated

廉价感情. 提交于 2019-12-22 18:45:21
问题 In a TLS handshake configured with a client authentication, there is a step where the server receives the client's certificate and choose to trust it or not (for instance, in Java it is done via a TrustManager). I would like to know if the eventual "trust failure" message from the server is sent before or after the server made sure that the client really own that public key (for example, by receiving first some messages from the handshake encoded with the client's private key). The purpose of

Applet printing; Applet discards security permission ; Windows7 & Java7

我与影子孤独终老i 提交于 2019-12-22 18:42:47
问题 Using Java Liveconnect able to access printer through applet from browser, for access rights I've added permission java.lang.RuntimePermission "queuePrintJob"; in C:\Program Files (x86)\Java\jre7\lib\security\java.policy file. But still I'm getting the following warning message Using : Java Plug-in 10.9.2.05 ; JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM But the same signed applet properly works in xp machine with java7. Even if I check Always allow.... , it keeps on showing warning

Single Sign on to secure REST APIs and internal web based system

我们两清 提交于 2019-12-22 18:41:32
问题 I need some suggestions on how to secure REST APIs and web based internal system using a single authentication system. I am looking into the possibility of using: oAuth 2.0 JA-SIG CAS Custom Implementation (implement two separate APIs) To secure REST APIs and redirect calls to specific API instance To authenticate web application users. 回答1: I assume you have a UI for your webapp and want to share your identity between your webapp and your web service. You can achieve that by : "cassifying"

Is a javascript bookmarklet that can set domain cookies breaking cross-domain security?

﹥>﹥吖頭↗ 提交于 2019-12-22 18:39:33
问题 I am creating a bookmarklet that is to be used across a wide range of domains. I wanted to set some cookies to store temporary settings for this bookmarklet, so I assumed that setting a cookie from this script would assign the cookie to the domain of the script's origin. This was not the case, the bookmarklet is able to assign cookies to the domain of the current site being viewed. This is not suitable for my needs (this would remember settings per domain, rather than for the bookmarklet

Sandboxing a program using WinAPI hooks

a 夏天 提交于 2019-12-22 18:34:14
问题 I'd like to sandbox a native code and use hooking of WinAPI and system functions to block or allow this program to perform some operations like reading/writing files, modify Windows registry, using an Internet connection. Is it a good and secure way to do so? How difficult would it be for that program to bypass such a security layer? 回答1: +1 to Hans, however if you are really into it then I can recommend Easyhook. I have personally used it successfully in Win XP, Vista and 7. I don't know how

Virus/malware modifying .htaccess on Joomla CMS website

为君一笑 提交于 2019-12-22 18:29:16
问题 I have a Joomla 1.0 website running on a shared host which I don't have shell access (only FTP available). Recently my website has been marked as malware site by Google and I notify that the .htaccess file is modified with malicious contents. These redirections rule to a website called 'depositpeter.ru' are added to the .htaccess: ErrorDocument 400 http://depositpeter.ru/mnp/index.php ErrorDocument 401 http://depositpeter.ru/mnp/index.php ... If I clean this .htaccess file, it will be

Virus/malware modifying .htaccess on Joomla CMS website

倾然丶 夕夏残阳落幕 提交于 2019-12-22 18:29:08
问题 I have a Joomla 1.0 website running on a shared host which I don't have shell access (only FTP available). Recently my website has been marked as malware site by Google and I notify that the .htaccess file is modified with malicious contents. These redirections rule to a website called 'depositpeter.ru' are added to the .htaccess: ErrorDocument 400 http://depositpeter.ru/mnp/index.php ErrorDocument 401 http://depositpeter.ru/mnp/index.php ... If I clean this .htaccess file, it will be

Risks of RWX memory pages

放肆的年华 提交于 2019-12-22 18:09:11
问题 After getting negative comments on this answer - can i implement counter in the .text area without using registers?, I performed a little investigation, trying to understand if RWX memory pages are really non-usual and rare thing, or every popular program has some. (Science!) I attached to MSVS by WinDBG, executed !address /f:Image,PAGE_EXECUTE_READWRITE , and I saw a lot of lines like this: 7a534000 7a537000 3000 MEM_IMAGE MEM_COMMIT PAGE_EXECUTE_READWRITE Image "C:\WINDOWS\assembly

Is there an encryption technique that could turn an 8-digit number into something 10 or 11 digits or less?

↘锁芯ラ 提交于 2019-12-22 17:56:31
问题 Many of the encryption techniques I've seen can easily encrypt a simple 8 digit number like "12345678" but the result is often something like "8745b34097af8bc9de087e98deb8707aac8797d097f" (made up but you get the idea). Is there a way to encrypt this 8 digit number but have the resulting encrypted value be the same or at least only a slightly longer number? An ideal target would be to end up with a 10 digit number or less. Is this possible while still maintaining a fairly strong encryption?

Spring Security Core and custom validator for a confirm password field is possible?

冷暖自知 提交于 2019-12-22 17:54:48
问题 If I write the following code: static constraints = { password blank: false, password: true , validator:{ val, obj -> if (obj.password != obj.confirmarPassword) return 'usuario.password.dontmatch' } confirmarPassword bindable: true } } static transients = ['confirmarPassword'] The following error appears after introducing the same password in password and confirmarPassword : null id in usuario.Usuario entry (don't flush the Session after an exception occurs) I found out the root of the