security

Ajax Control Toolkit Editor Control - avoiding XSS attacks

你。 提交于 2020-01-14 03:01:06
问题 I noticed in this article that Microsoft does not recommend using the Editor control from the Ajax Control Toolkit in public sites because of the danger of cross-site scripting attacks. I tried it out, and even if you specifically set NoScript="true" it's possible to add script, and therefore, introduce XSS attack vulnerabilities. In my situation, we are working on a scholarship application process, and we had hoped to use this to all nominees to type up an Essay on-line. We wanted to take

WebSocket Secure localhost connection

会有一股神秘感。 提交于 2020-01-14 02:53:28
问题 I've built a simple Node.js WebSocket chat server. I can run it on localhost in a terminal tab. In another terminal tab, I can connect to it with wscat , using ws:// . How do I connect to it on localhost with wss:// ? 回答1: Look at this example code for how to establish an HTTPS server which will handle the TCP and TLS layers and then the ws module can handle the websocket aspects integrating with that server. You'll need a TLS certificate. For development you can generate your own and sign it

Redirect after Realm authentication on Glassfish

◇◆丶佛笑我妖孽 提交于 2020-01-14 01:42:49
问题 I'm currently running a JPA/EJB/JSF application on Glassfish and using the security JDBC realm for authentication. The realm works pretty well, fulfilling the requirements, until the customer asked for a small change on the navigation. Today, if you try to access a protected page, the authentication mechanism will redirect you to a login page specified in the web.xml. Perfect! Once the authentication is successful, you are redirected back to the page you were trying to access. Fair enough.

Java Security Class Couldn't be found

假装没事ソ 提交于 2020-01-14 01:08:15
问题 When launching my program the next error pops out java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.SunJCE_b which means this class is missing although I've found this class manually, works via jar/ide but doesn't works prefectly via service. Maybe I need to make a few modifications? but which? Thanks in advance 回答1: I don't know if this is relevant to your problem but I was experiencing the exact same behavior due to versions of the JCE Policy files I was using. Using

Prevent tampering with client-side geocoding results

梦想与她 提交于 2020-01-13 22:42:08
问题 We are building a service that uses location-based pricing. The user can input an address and see prices in his area as determined by various server-side algorithms. It is then possible to order items based on these prices. I'm trying to figure out if there is a way we can use client-side geocoding in this scenario (to avoid hitting Google Maps API usage limits), e.g. the user enters his address and the browser fetches the geocode result using the JS library and includes it in the form

jQuery vulnerability (NVD CVE-2007-2379)

醉酒当歌 提交于 2020-01-13 22:35:12
问题 We're using jQuery and I've come across the following jQuery vulnerability in the National Vulnerability Database: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-2379 Has this been fixed in more recent versions of jQuery? The original release date on the vulnerability is 4/30/2007. I'm trying to ensure that the little jQuery we do use doesn't expose this vulnerability, does anyone have examples of it? 回答1: Have a look at jQuery.getJSON(): If the specified URL is on a remote server,

jQuery vulnerability (NVD CVE-2007-2379)

牧云@^-^@ 提交于 2020-01-13 22:34:55
问题 We're using jQuery and I've come across the following jQuery vulnerability in the National Vulnerability Database: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-2379 Has this been fixed in more recent versions of jQuery? The original release date on the vulnerability is 4/30/2007. I'm trying to ensure that the little jQuery we do use doesn't expose this vulnerability, does anyone have examples of it? 回答1: Have a look at jQuery.getJSON(): If the specified URL is on a remote server,

Baidu map implementation on secure pages

北城以北 提交于 2020-01-13 19:46:10
问题 We are making our store locator pages secure for China site but the issue is Baidu URL https://api.map.baidu.com/api?v=1.4&ak=xxxxxx automatically redirect itself to http url. When I hit above URL 'https://api.map.baidu.com/..' in browser it shows following code - (function(){ window.BMap_loadScriptTime = (new Date).getTime(); document.write('<script type="text/javascript" src="http://api.map.baidu.com/getscript? v=1.4&ak=xxxx&services=&t=20150522093217"></script>');})(); Using this URL

Baidu map implementation on secure pages

空扰寡人 提交于 2020-01-13 19:45:38
问题 We are making our store locator pages secure for China site but the issue is Baidu URL https://api.map.baidu.com/api?v=1.4&ak=xxxxxx automatically redirect itself to http url. When I hit above URL 'https://api.map.baidu.com/..' in browser it shows following code - (function(){ window.BMap_loadScriptTime = (new Date).getTime(); document.write('<script type="text/javascript" src="http://api.map.baidu.com/getscript? v=1.4&ak=xxxx&services=&t=20150522093217"></script>');})(); Using this URL

How to send a Secure e-mail using SMTP

本秂侑毒 提交于 2020-01-13 19:11:38
问题 I am currently using Google Apps to send SMTP e-mails. If my project deploys some of the information that i am going to be sending will be confidential and i would like to make sure the transmission is secure. Can anyone please let me know what i need to do to ensure that i send a safe e-mail using smtp through the google apps smtp server? smtp.google.com. Any help greatly appreciated. From what I have been told i need to force Https and have a SSL cert in order to do this. I don't know if