security

re SQL Injection Attack using MySQL, does this meet baseline requirements?

三世轮回 提交于 2019-12-25 18:42:20
问题 I have a Single Page Application in which the browser does all the logic work. Except for initial loading, the server is pretty much a fancy interface to the database. The browser sends data dictionary keys, column name / value pairs, and where clauses for SELECT, for example. The server assembles the parts into SQL, executes the queries, and replies. NEW: In a SELECT, for example, the table name and columns pulled are from the data dictionary - the browser supplies the data dictionary key

java applet java.security.AccessControlException: access denied java.net.SocketPermission

妖精的绣舞 提交于 2019-12-25 18:20:03
问题 I friend of mine gave me a script to run minecraft skins on my site but i keep getting this error and i dont have any clue how to go about this... =( http://allcitybuilder.com/new/example.html java.security.AccessControlException: access denied (java.net.SocketPermission www.minecraft.net:80 connect,resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission

How can I fix a “unable to find valid certification path to requested target” error using conda installed Java? [duplicate]

Deadly 提交于 2019-12-25 18:16:55
问题 This question already has answers here : Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error? (18 answers) Closed 4 months ago . I was using the command yesterday and it worked perfectly. I may have installed a different perl or ava but I'm not sure why this would cause the error. I've looked at the other examples of this on StackOverflow but it appears that they are applicable to web browsers. How can I fix this on a

RijndaelManaged can not decrypt

天大地大妈咪最大 提交于 2019-12-25 17:17:43
问题 The code can be found at: http://pastebin.com/3Yg5bHra My problem is, that when I decrypt then nothing gets returned at all. Nothing gets decrypted. It goes wrong somewhere around line 111-114. The cryptoStream (csDecrypt) is empty, eventhough I put data into the memorystream (msDecrypt) EDIT Nudier came up with a solution 回答1: //Function for encrypting propose static string SymmetricEncryption(string str, byte[] key, byte[] IV) { MemoryStream ms = new MemoryStream(); try { //---creates a new

SSL Issue < Warning Users Not Secure However SSL Applied>

允我心安 提交于 2019-12-25 16:53:52
问题 Hi we have a PositiveSSL Wildcard Certificate for the URL which is installed on the server, and to the best of my Knowledge everything is ok, however over the course of launching, we have sent out 100,000 mailers of which so far 20,000 have re-signed up, however a few ppl have been in touch ref MIM attacks stating the site/application is unsecure, but as far as we can see we are not getting any notifications, and it appears only a few people are (specifically Chrome users) some mobile, some

Prevent user from reading javascript data and files when login fails

末鹿安然 提交于 2019-12-25 16:53:43
问题 I have an application which is written in angularjs. However, this problem applies to javascript applications in general. The user calls the index.html in the browser, which then presents him the login page. However, in the background, all javascript files are being already loaded. Therefore the user could in theory read the code (even when obfuscated and minified) and gain important information (keywords, rest call urls and so on). Even if I would do lazy loading of js files, the user still

secure include files

橙三吉。 提交于 2019-12-25 16:42:54
问题 I'd like to know the BEST solution to secure includes files. For now my solution is this : in the index file : define('KEY','security'); include('s.php'; s.php : if(KEY!='security') exit; 回答1: Most cases of similar code don't even check for a known value of key, but just check if it is defined. For example Mediawiki uses this in include files: <?php if( !defined( 'MEDIAWIKI' ) ) { die( 1 ); } 回答2: order deny,allow deny from all allow from 127.0.0.1 put this .htaccess in the include files

MySQL authentication using script without supplying password in plain text

℡╲_俬逩灬. 提交于 2019-12-25 16:08:58
问题 I have written a CGI script using bash which executes a MySQL query . Since my purpose is to automate a task , I had to put MySQL credentials in the script only with the password being in plain text . The issue for me is the server in question which will execute the script is a production server with outside access . I am looking for a solution where the automation remains but without supplying the password in plain text . PS: One solution for me is to enforce strict permissions by removing

Silverstripe 3 - Unable to implement controller access security from CMS

﹥>﹥吖頭↗ 提交于 2019-12-25 15:17:09
问题 Good afternoon, I'm still new to silverstripe and I'm trying to figure out some really simple tasks. Currently, I'm trying to implement the security restrictions from my page controller function that was already created within my DataObject and configured via the CMS. However, whether or not I grant the user access to view the object, the user sees it anyhow. See example below: class MyComponent extends DataObject implements PermissionProvider{ ///>... this is just a snippet not the full

Silverstripe 3 - Unable to implement controller access security from CMS

…衆ロ難τιáo~ 提交于 2019-12-25 15:16:21
问题 Good afternoon, I'm still new to silverstripe and I'm trying to figure out some really simple tasks. Currently, I'm trying to implement the security restrictions from my page controller function that was already created within my DataObject and configured via the CMS. However, whether or not I grant the user access to view the object, the user sees it anyhow. See example below: class MyComponent extends DataObject implements PermissionProvider{ ///>... this is just a snippet not the full