instruction
stringlengths
24
29.9k
.NET Developer here, out of my comfort zone on this one. My software company is going remote, where employees can work from home, Starbucks, a Regus office, Spain, anywhere really. One of our clients requires IP Whitelisting to access their servers, so I am wondering how we can avoid having to send them new IPs to whi...
I need a way of authenticating that a file was generated by a particular machine that has a unique ID and a unique random secret also known to the authenticator, as an added difficulty the file producer cannot directly communicate with the authentication machine. My current methodology is as follows: File gen: File Pr...
Recently, I had to reinstall one of my VPS servers (again), due to malware. I took what I considered to be pretty good security precautions. I also locked the root account and am using sudo as well. But one day later, I logged in and noticed the program 'agetty' was running on several TTY's : root 382 0.0 0.0 ...
I'm currently in the United Arab Emirates, and I am wondering if Etisalat or the UAE can track what I am doing if I use the ZenMate VPN addon to Chrome?
Since TLS is preferred over SSL, why do we still use the terms SSL and HTTPS generally? The former could be anecdotal, but most people I speak to still say SSL in general conversation. The term HTTPS is more objective, since that means HTTP over SSL. Why don't we say HTTPT (HTTP over TLS) and use the scheme httpt://?
I have a PKCS#7 signature that have the content‐type signed data and it embeds an XML document, and I have to extract the xml document from this PKCS7 file. Anyone know how to do that in java ??
I need to provide a service that acts as a symetric encryption/decryption blackbox : the box get a secret key k users send datas d, and get ciphertext c = Encrypt(d,k) users send ciphertext c, and get data d = Decrypt(c,k) the box should encrypt/decrypt only from/to an authorized set of users users should never get th...
I was wondering if it's possible to chain many VPNs, and if it is, if it increases privacy at all? My thinking was that each country has data retention laws. If all VPN keep logs (even if most lie about it), they are only required to keep them for a certain period of time. And by chaining VPNs you would make it harder ...
Is it possible for someone else to intercept a text message I am sending and add a photo to that message? I recently answered a text message I received from a friend and half way through typing out the reply, an old intimate photograph of me inserted itself into the body of the text message. Can this be done by someo...
First things first: I know about the difference between end-to-end-encryption and transport encryption. Back to topic: I already read some things about how mail server handle transport encryption, e.g. How Can You Tell if an Email Was Transmitted Using TLS Encryption?. Here are two examples for incoming mail to my prov...
DKOM can be used to hide processes and drivers. It works well on x86 system. However, there are PatchGuard on x64 system. Can PatchGuard detect DKOM?
My phone operator is slowly abandoning TDM (Time Division Multiplexing) to replace it with IP connections. What are the security risked related to this change? will all the phone line be like in a big LAN? will it be easier to do packet injections, DDoS, or hacking? I don't really understand what is the technology behi...
I have written a piece of software that symmetrically encrypts big files (multi-megabyte). Plaintext is encrypted, after the encryption the HMAC is calculated and written into the header of the file. During encryption, I update HMAC continuously, using as input chunks of encrypted data (encrypt then MAC). There are no ...
Am I vulnerable if my bank uses TLS 1.0? Is it easy for somebody to do a MITM attack? Should I just access their online banking at home where I assume it is safer to do so?
We're considering implementing an SSL Intercept proxy in my organization. It will perform a SSL MITM to be able to inspect traffic. It will be a solution of a commercial vendor. It is clear that we will need to inspection exceptions for some sites: Policy (Confidentiality): banking, medical, ... Application: client ...
I am trying to get a grasp on different stages of SSL. I have referred to some fantastic answers about how SSL/TLS works and specifically about authentication mechanisms, and numerous other sources. But I am still confused about this: what does Au=ECDH mean for a cipher such as ECDH-ECDSA-AES256-SHA. From the cmd line...
I'm referring to the Figure here. Since the client already knows the session key and only the authenticated server can decrypt the session ticket, why can't the client start sending encrypted application data immediately after Client Hello, without waiting for server's Finished response?
[Thanks for the great answers! But it was put on hold so I've edited my question to be a lot less opinion-based. Based on the answers already given, though, I am getting the sense that booting off a LiveCD with an updated installation of Chrome is probably the best option. :P] For the following: Kaspersky Safe Money A...
Suppose there is a password-secured WiFi network that exists to provide users with Internet access only. Edit: Consider a guest/mobile-BYOD network as an example. Since filtering access to a WiFi network by MAC address is of dubious security benefit (as has been discussed here in detail) and involves certain inconveni...
I am trying to understand what WebCrypto means. From what I understand it is - A Javascript Crypto API spec that all browsers must (hopefully) support. Am I correct? If so are the crypto algorithms implementated in Javascript? Or the algorithms from the underlying platform simply exported through the WebCrypto API? Wh...
I am writing a bash script and prompt the user for his password. This password is supplied for either a local or domain account to query a MS SQL Server (using sqsh and freetds). How secure is the code below ? echo "What is the password for $mssqlu ?: " read -s mssqlp I suppose there is no hashing involved here, and t...
I have a question related to HttpOnly cookie. Tracking other threads wasn't of much help, hence I am posting my query here to learn if you can foresee any issues with my understanding. There is a website, let’s say www.example.com which sets cookie at 2 stages. Connection between Load Balancer and Client -- LB_Cookie ...
I have developed a login page using php and i have an firefox addon named "Tamper Data 11.0.1.1-signed" . I entered the username and password and started tampering of that data using that addon. I am able to see the password in clear text in the data captured by the addon. Is there any way to prevent it? –
I wonder whether the Whatsapp messages are sufficiently encrypted so that the ISP/MSP ( mobile service provider) cannot read what is inside? I will be travelling to some of the most oppressive regimes in the world, and I fear that my Whatsapp chats might be monitored because the messages will be passing through local I...
say u host a website and people come and place orders with you while your away, u come back and see the orders have been placed by somebody, how will you find out if the person who placed the order used a proxy or not..??
Is there any reason to believe that the hardware RNG in an Intel Celeron CPU is more unreliable than in other CPUs? Can someone confirm that what Linus Torvalds says is true, namely that Linux does not rely fully on the hardware RNG in the CPU, in particular in an Intel CPU? Finally, to make it concrete for my partic...
I have to create a PKCS7 signature file signed by an X.509 certificate and I have to embed an XML file within. How to do that with OpenSSL or any other tool?
What I'm after is a trust that is established between the hardware and the software intended to use that hardware. This may require a certificate "burned in" to a specialized chip. The open SSL may need the same treatment. On installation, the trust is formed, and unless you authenticate with a user key to the hardwa...
The IPS reports have one or two events minimum every day so far. But today there were no events, both in DC1 and DC2 reports. I am wondering if this possible? How come on a particular day nobody attaked us? Has anyone experienced similar situation?
Telegram implements signup/signin with mobile number and a 5-digit one-time password. I believe the flow to be something along the lines of this: Grab the mobile number, generate an OTP, cache it and send it via SMS. When the user introduced the TOTP, check whether there's an account with matching mobile number, creat...
Is it possible to dump a Linux password in clear text format? In Windows it is possible to do so using "Windows Credential Editor".
Is cryptography legal in India? If yes, then what type of encryption is not allowed?
My company is developing a PHP system that needs to interact with Git on the server, which can currently most conveniently be done by allowing external calls via proc_open(), system() and the likes. The problem is that our clients typically use shared hosts and those hosts typically have these PHP functions disallowed....
I am looking for a way to make sure that a particular archive file does not contain any sort of malicious code. From time to time new vulnerabilities pop up (e.g. gzip, 7zip) so I though a good idea would be to convert archive from one format to another before opening it on the secure system. I assume this operation w...
I have a blog hosted with Ghost CMS. I created a new blog post (say "My New Blog") and correspondingly there was a url generated (mysite.com/mynewblog/) The weird part is that I saw an access to this post within 2 minutes of creating it. And ever weirder: the access IP was from China (IP to location). Even if I assume ...
Can we capture the output of Windows CryptGenRandom function. Suppose an application is utilizing CryptGenRandom, as a user can we know what is the Random Number generated and given to the application
HTTP Request(POST): per_page=security.stackexchange.com&order=questions&redirect=HTTP://security.stackexchange.com/ So when I record my request I get these 3 parameters and when I edited it a little bit, then click forward(Burp Suite), then I get redirected to the given site (in this case I get redirected to security....
We are using an IDTECH card reader for iPhone that is not encrypted, our application is web based and runs inside of an iOS app to pull the data off the card. We are then using a client side encryption library to encrypt the card data before it goes to the gateway. We do not store the card data in our database and our ...
I have another semester or so before I graduate with my As in Information security. This is going to be a two part question. Other than the degree I will also have a few different certifications. Also adding a small 140 hour internship with my last semester. CompTIA A+ CompTIA Security+ CompTIA Network+ With the degr...
So as far as I know, when you go to a https enabled website, all the data you send to that server will be encrypted with their public key, and only the server holding the private key will be able to decrypt it. BUT, what about the data downloaded from the server - incoming traffic? E.g. if someone could intercept incom...
In the wake of all these leaked/stolen/hacked government login/passwords being stolen it got me thinking. How is the leaking of these passwords even possible? Or are they of any real use? Aren't all these passwords hashed or encrypted somehow? Unless the passwords are stored in plaintext what's the point in even trying...
Someone asked me to take over maintaining their (quite old) website. I looked at the code, and I see that every page has calls to mysql_query, with sql strings concatenated with completely unsanitized $_GET variables. It's a huge website, and would need to be rewritten from scratch to get rid of all these problems. I'm...
I've posted this over at ServerFault but haven't received a response over there. I'm not a security professional, but I'm curious as to what kind of attack this might be and how the attackers might be performing it. I figured someone here who's more knowledgeable in security might know. Here's the text of the original ...
Are there any security weaknesses associated with using Citrix XenApp 6.5, Citrix Storefront and Citrix Receiver as a remote access tool? I.e, I know it uses RC4-MD5 and DES-CBC3-MD5 ciphers, which are considered to be a weak cipher. Any other flaws?
The Common Vulnerabilities and Exposures (CVE) system is a dictionary of publicly known information security vulnerabilities and exposures in publicly released software packages. I am looking for a canonical answer to the following questions: How do CVEs work? How do you find a CVE related to a particular product? Wh...
Today I decided to run the apache-scalp script and it found a few issues. One was ranked as Impact 5, and I'd like to know if someone could explain what this does, and how to disable it? The request was: - - [25/Jun/2015:20:08:26 -0500] "GET /xc9/xbf/xe1/xf9/xa0/xbb/xd4./xf6/xe8%5D/x15K/xa3Tn/xe0;/xb4/xa2/xdd/xe4%+/x1e...
I've heard from one person that companies often issue own certificate for their internal usage. It's not signed by any public CA. And he says that it's an enterprise standard. I couldn't find any proof for that on the Internet and thus here is my question - is that really an Enterprise standard and what are the benefit...
NB: I originally posted this on SO (link), but then realise Security SE be more suitable, since there's existing questions around Crypto-PAn, which is similar here I have a logfile of database queries that I'd like to anonymise - these are obtained from clients, and then analysed externally. The clients would like to a...
I use ssh to get an encrypted connection between servers and local machines all the time. It's fast, it's secure, and there's a way to do it in nearly every system programming language that I've used so far. My question to you is, can this simple interface be used for secure inter app communication on the same device? ...
Recently while browsing using shodan, I came across a search string to explore webcams. Some of the searches I carried out were: webcamxp city:city name webcamxp geo: longitude and latitude which exposed some public webcams. This raises two questions: Does private webcams/public {for e.g my corporate} to be accessi...
Reading this topic How critical is it to keep your password length secret? following scenario comes to my mind: Assume I've a web application (PHP written using password_hash()) using salted password hashes to save user passwords. A user tries now to login. The server now has to do some tasks: Calculate hash of provid...
While debugging my web application in Fiddler, I found out that there are some suspicious requests to some hotel sites, search requests to google.pl. etc. See below images. Strangely there no process displayed in Fiddler. It's definitely a virus. I don't know how to find out which software or process is causing it. ...
Website keep getting hacked every day and every now and then we hear website owners react and tell "affected users that their password might had been compromised". Most sites that disclose such leaks know exactly which information was compromised and it often only affects a small portion of the user. In all my setups,...
I wonder which of these things is more secure. Imagine hard coded credentials, similar to this: if user.Equals("registereduser") && (password.Equals(encryptedpassword)) { Give access to the user I know this method has big flaws like having to modify the code each time you want to add a new user, and being only us...
First of all, by nested ssh, I mean the following way of using ssh: ssh usera@Bob 'ssh usera@C' suppose A wants to login on server C, but for some reason C is not directly available to A (e.g. C's behind a certain FW or NAT or so). Fortunately, A's friend, Bob has direct connection to C and A can connect to Bob as we...
I checked my home (broadband)routers security logs just today and found these logs LAN Attack: IN=ptm0.1 OUT=n/a MAC="mac address here"a SRC="source ip address here" DST="my public ip address here" LEN=129 TOS=0x00 PREC=0x00 TTL=115 PROTO=UDP SPT=6881 DPT=15936 LEN=109 MARK=0x8000000 and second log: Port Scan Attack: ...
Is using netcat to connect with a server that one does not own, illegal? For example, using netcat to connect with a web server and querying GET / HTTP/1.1 etc. I am asking this question because netcat is on bit on offensive side too, so maybe any use on a server would be illegal. The very reason for my question is tha...
Generated a IIS server certificate using my domain certificate authority (presumed to be an intermediate to the 'secret' root CA) via the Server Certificates -> Create Domain Certificate 'wizard'. Entered the FQDN of my server for the common name, filled out remaining form and hit Finish. Certificate is generated and...
I am building an Android App that pulls chart information from a server where the connection is specified on this view Ideally, the end user will put in a valid host and port resulting in business as usual. However, I've recently been looking at Cross site scripting attacks. The example provided to me was that if a we...
I've been working a lot lately with writing report generating forms at work. The reports sometimes require input provided by a drop-down list and sometimes require data to be entered by key. My question is more about practice. Is it common practice to implement SQL injection safeties in all cases? Or given that these ...
Hypothetically, should I be concerned if someone has my public key and knows my passphrase? Will they be able to decrypt messages sent to me?
Can a wifi network have WPA encryption, WEP cipher and OPEN authentication?
If a server supports | SSLv3: No supported ciphers found | TLSv1.0: | ciphers: | TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA - strong | TLS_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_RSA_WITH_AES_12...
I don't get the purpose of such an audit especially given the way it is conducted. We have a 3rd party auditor who I won't name, but let's just say they probably audit the majority of the publicly traded companies in the world. The kind of requests from the audit teams are: Can you give us a screen shot of the installa...
On an answer to the question How critical is it to keep your password length secret?, Mike Ounsworth commented that by storing the zxcvbn-calculated entropy of a password you make it easier for an attacker to guess the password: You are in effect keeping two "hashes" for each password: the bcrypt hash, and the zxcvbn ...
Lets say I'm using NFC cards for access control. NFC cards/stickers are easily readable and writable, so my worry is that the data on them could easily be cloned onto another card/sticker and bypass the security. My idea to detect cloning is to include 2 pieces of info on each card: User Id Random value So lets say t...
Considering the two devices, ASA 5505 Security Appliance and without Security Appliance. What are the differences between having security appliance and without security appliance? I can not find the datasheet without security appliance and no compare facility exists on the official website. Does it mean that without se...
I am not a security expert, so I am hoping that a few of you might be able to tell me if there are any gaping flaws in the security design for my web app. Hopefully I'll be able to explain this clearly enough to get my point across. I have a website which makes calls to my api. Both use SSL and are hosted in Azure, but...
I have a SSH server with a rule that does not allow password connections outside the local network. So people already on the local network, either physically or via VPN, are allowed to connect with passwords but connections from external IPs must use a key (the weaker security for internal IPs is ok because if the netw...
I recently came to know about WifiPhisher. To test it, I set up an access point using my Windows laptop and tried to obtain its password using this tool in my Ubuntu machine. So, when I run the program, it can cause Denial of Service by sending deauth packets to the AP I have created, but it does not create its fake ac...
For example, if I use my ISP DNS and open this page they will see: https://security.stackexchange.com/questions/ask It would show up in their logs for sure. But if I use Google DNS, then what EXACTLY can they see? Do they log this as: http://204.93.58.117/questions/ask or just: http://204.93.58.117/ I'm asking this bec...
I tried to visit a HTTPS page and server responded with 503 response - currently unavailable. In address bar, there was an address of that Facebook page, but it was not HTTPS but HTTP, probably because of server overload. I know that it is very unusual, but it happened. I want to know if my visit to that page is record...
With things like NSA or state sponsored attack, it seems that no one is safe from a technical point of view. Is there any efficient method or strategy to protect against them? My guess is that relying on technologies is the worst method, as it is very hard (even at large corp) to be better than state sponsored employe...
I have a router and I'm the only user. I have a computer with Linux and a tablet with Windows 8.1. Because of a few problems, I had to reinstall Windows on the tablet. Since I'm a bit paranoid about virus and malware, I would like to ask: Even if I only used the Internet to download Windows updates and get the antiviru...
I was wondering how do hackers use cryptography for bypassing antivirus software. I don't have some deep understanding on how antivirus software works, but I know that every antivirus has base of signatures, so when we scan .exe file it actually compares signature of .exe with signatures in it's own base, and if it mat...
My client wants their public facing IP addresses to be secure, but thinks that running nmap port scans will draw attention from hackers. To settle this once and for all, what do you say?
I use Gmail and I started getting malicious-sounding emails from people I know intimately. The people I spoke to said they did not send those emails. In order for the attacker to carry this off, are they attacking my email servers or my contacts' servers? Or is this us an mitm attack?
How does a security auditor perform a vulnerability assessment for Windows Tablets including Surface RT tablets deployed ones and any management application that comes pre-installed with it? Also, there are tablets, which comes without Surface and these versions are generally the same Windows OS (Desktop OS). How does...
I am implementing a password reset feature for a web application and am contemplating adopting an implementation similar to Django. In a nutshell, Django creates a token who is comprised of a timestamp and a hash of the timestamp and the User ID. This hash is a HMAC and is used to verify that neither the timestamp or t...
I'm looking for a way to sign a 624 bits message on 256bits (sig length = 256 bits) with an asymmetric keys system? I'm trying to sign a qrcode so a client can be sure that this qrcode has been emitted by the server. It should be very hard to generate a qr code without the private key. (It should take more than a month...
There're a number of security tools out there that enumerate the subdomains of a given domain. I wonder: What's the purpose of that in terms of security / hacking? Is there any way to do that other than by brute-force with a dictionary of the most popular subdomain names? How to protect my domain against subdomain enu...
I'm job hunting at the moment and I've come across several potential employers that have PDF's that you would download, fill in, and then email to them. I feel EXTREMELY uncomfortable sending my personal information such as name, address, phone number, work history...etc through such insecure methods, never mind my SSN...
cPanel server with Exim MTA and Dovecot. Some hacker is finding old scripts at different users public directory, and uploading base64 encoded files then using it to send massive spam. How do I block it at the server or Exim config itself, without disabling normal PHP scripts sending legitimate email? Example of that co...
I want to build something, but I haven't seen it before. Maybe you have? I'd like to build a HTML5 app, served to modern browsers and phones from a microcomputer (e.g. BBB). The microcomputer would be an open Access Point (not necessarily connected to the internet) Clients could connect to the AP and see the app. Th...
There are some wifi networks (large universities for example) which use HTTPS to get to a login page, and in order to verify that they have not been spoofed, provide the certificate ahead of time (i.e. from the companies official website, using SSL, which you are supposed to have accessed & downloaded ahead-of-time). N...
I have created an OpenSSL RSA private key and certificate request with 4096 bit with the following command: openssl req -newkey 4096 When I view the private key with openssl asn1parse -in privkey I get the following output: 0:d=0 hl=4 l=2446 cons: SEQUENCE 4:d=1 hl=2 l= 64 cons: SEQUENCE ...
In principle, storing data securely on an untrusted server seems to be easy. Just use a strong enough client side encryption. But how to deal with web applications? For example a forum software like https://github.com/discourse/discourse, a Django app, or something like that? Are there any concepts to run such software...
I'm really new to security in Websites, for example... So can someone give me somewhere to start please? Sorry if it's not the right place to ask... :|
I made some dumps with different formats (.DMP and some file made by LiveKD utility) in Windows 8.1 x64 OS. The first one is a explorer.exe dump file which was created by TaskManager->Create Dump File function and the other one is the whole system dump(I mean win 8.1) which is about 2.5 GB. While I was trying to use di...
If records are subpoenaed from google will they reveal internal IP or external IP addresses of a email account? For example if an email address is made and an email is sent using and iPad and home wifi will it reveal the same IP address or different address used to create and send an email from a different home wifi?
I have a set of password hashes. Here is an example: 9e74437e97ff201ff38416138a22a7f3adfa3b9c10e947481bd94b16eed7df6b6e2806 From the source code of the application generating this hash I learned that the salt is prepended as the first 6 characters and the overall algo producing the hash is: salt + SHA256(salt + passwo...
I'm giving each of my users an unique Blocktrail wallet that is protected by two API keys (which the server knows) and one passphrase (unique to each wallet). I want the wallet's passphrase to be unavailable to anyone but the logged-in user (session persistent), so that nobody, even server administrators, can look at ...
I need some advice as I have been unable to find anything useful via the web - (Google search). I have used the application EventGhost so as to create a custom shell, that I run using the Windows 7 Professional OS as an alternative to the explorer shell. I was wondering what options I have (and even if it is actually p...
I'm writing a TLS server. While handling ECDHE-RSA cipher suite, the server key exchange is needed. According to Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer Security (TLS) select (KeyExchangeAlgorithm) { case ec_diffie_hellman: ServerECDHParams params; Sign...
Blinding is often used to mask private key operations when the underlying problem is integer factorization. For example, its used in both RSA and Rabin-Williams signature schemes. This presumes integer operations are not constant time. I have two questions: Is blinding used in schemes other than integer factorization?...
Against dead forensics acquisition we can use disk encryption (we can use TrueCrypt for example). I was wondering do software exists against live forensic ? Can you give me a list for windows and linux (the most popular) ? What other ways there are to protect themselves from this type of "attack" ? For example EnCase ®...
I am preparing for a technical interview for an AppSec pen-testing position. For those of you that have had AppSec positions, what sharp-shooter questions do you think I can expect? What questions would you ask a candidate if you were doing the interview? Thank you for your insight!
Many people advocate generating new primary keys for each identity they wish to have. For example, creating one primary key and associated subkeys for workplace use, and a completely different primary key and associated subkeys for personal use. But is it possible to generate one primary key, and create multiple subk...
I'm currently using the -tls-cipher command on server to only allow the cipher I want (TLS-DHE-RSA-WITH-AES-256-GCM-SHA384) but there is the command -cipher too, and OpenVPN's man page is not really clear with the differences between them. Googling also returned no useful information. Many websites also tell me I shoul...
I would like to harden my OpenSSH (clientsite) after the LogJam attack. I read this article https://weakdh.org/sysadmin.html and there is one paragraph, which says how to do that. Is this enough and how can I test if that is good enough? How can I hardening it if I am using OpenSSH lower than 6.5?