security

IIB - BIP4761E: The message flow attempted to use 'SecurityProfiles' policy

泄露秘密 提交于 2020-03-25 15:51:21
问题 I' am trying to set LDAP Auth on Pet Store REST API in IBM App Connect v11.0.0.6 In order to do so, I have followed this guide: Creating a security profile for LDAP I made a BAR file out of my "pet" REST API, deployed policy to the same Integration Node, then in flow properties tried to pick my ldapPolicy but it was not present. When I enter it manually and deploy I end up with this error: Begin running task [Deploying [pet.bar] to integration server [InteriorIntegration]] The BAR file C:

Reading data from European DTCO company card

给你一囗甜甜゛ 提交于 2020-03-20 06:46:20
问题 I need to be able to read card and company identification data from European digital tachograph company cards (smart cards). These are described within the document COMMISSION REGULATION (EC) No 1360/2002 but I have run into a problem. The data I need to be able to read is contained within the file EF Identification , which must be read with secure messaging and I therefore need to issue a Manage Secure Environment APDU command that requires a key identifier that identifies a key residing on

How to use Google application-specific password in script?

时间秒杀一切 提交于 2020-03-18 11:25:12
问题 Since enabling 2-factor authentication (aka. 2-step verification) on Google, my Google export scripts no longer work. The computer is verified and trusted, but somehow the scripts are not. In effect, every time the cron job is run I receive a new "Google verification code" and the script fails. I assume it should be a simple matter to authenticate such scripts once and for all with wget or curl , but I couldn't find any documentation for how to do it. Google authentication schemes have gone

List of Android smart phones that support Android StrongBox on API 28(Android Pie)

懵懂的女人 提交于 2020-03-18 07:59:18
问题 I need the list of Android phones that support secure element and StrongBox in Android 9. Where or how can I find that? I tried the code below with Samsung Galaxy S9 and also with AVD Google Pixle XL API 28 KeyPairGenerator kpg = null; kpg = KeyPairGenerator.getInstance( KeyProperties.KEY_ALGORITHM_RSA, "AndroidKeyStore"); kpg.initialize(new KeyGenParameterSpec.Builder("keystore1", KeyProperties.PURPOSE_SIGN) .setCertificateSerialNumber(BigInteger.valueOf(1L)) .setCertificateSubject(new

Correctly hiding database credentials

天大地大妈咪最大 提交于 2020-03-16 06:53:41
问题 As you may see, I have my db connection file and another "protected" file, where my credentials are, and this file is included in .gitignore. I import it and reach the data. Quite basic. Therefore my questions are: Is this the right way to do it? If not, how should I do it? Plus: how could I add extra security to my account,connection? Let's suppose I have a private collection, that no one should see, how could I protect specially this collection? I mean, with a password or a two step

Correctly hiding database credentials

大憨熊 提交于 2020-03-16 06:52:30
问题 As you may see, I have my db connection file and another "protected" file, where my credentials are, and this file is included in .gitignore. I import it and reach the data. Quite basic. Therefore my questions are: Is this the right way to do it? If not, how should I do it? Plus: how could I add extra security to my account,connection? Let's suppose I have a private collection, that no one should see, how could I protect specially this collection? I mean, with a password or a two step

Security Considerations - ChromeDriver - Webdriver for Chrome

笑着哭i 提交于 2020-03-12 05:45:12
问题 I was wondering if anyone had more information on what the specific risks for using chromedriver as was concerned by this statement. "If possible, run ChromeDriver with a test account that has no access to sensitive local or network data. ChromeDriver should never be run with a privileged account." Would like to know what the specific risks are when using a privileged account and what if any preventative measures can be taken to protect against them. Thank you in advance! 回答1: How Google

PHP & Javascript : How to protect web hacker for post and get method?

只谈情不闲聊 提交于 2020-03-05 07:15:28
问题 Here is my sample.html file located in http://www.aaa.com/sample.html <html> <script> $(document).ready(function(){ $.post('http://www.aaa.com/api/_file.php?act=add', {val : '1234'}); }); </script> <body> </body> </html> and this is my PHP file that recieve request from sample.html file <?php switch($_GET['act']){ case 'add' : doFunction(); break; } function doFunction(){ echo $_POST['val']; } ?> if I have another html page like hack.html that located on another website, example http://www

PHP & Javascript : How to protect web hacker for post and get method?

感情迁移 提交于 2020-03-05 07:15:19
问题 Here is my sample.html file located in http://www.aaa.com/sample.html <html> <script> $(document).ready(function(){ $.post('http://www.aaa.com/api/_file.php?act=add', {val : '1234'}); }); </script> <body> </body> </html> and this is my PHP file that recieve request from sample.html file <?php switch($_GET['act']){ case 'add' : doFunction(); break; } function doFunction(){ echo $_POST['val']; } ?> if I have another html page like hack.html that located on another website, example http://www

Basic Working Example of an XXE Attack in HTML

痴心易碎 提交于 2020-03-05 06:04:23
问题 I'm trying to run some tests with XXE attacks in an html page, but i'm having trouble coming up with a working example. After looking around the internet for a long time, I came up with this: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script id="embeddedXML" type="text/xml"> <!DOCTYPE foo [ <!ELEMENT foo ANY> <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]> <foo>&xxe;</foo> </script> </head> <body> <script type="application/javascript"> alert(document