instruction
stringlengths
24
27.2k
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?
I have a few REST APIs for an iPhone app. It has a login and session management functionality. Currently the session has been tracked by a token set during login. Are REST services affected by CSRF attacks? Is it necessary to implement CSRF token along with my application? We believe in enhanced security. I just wante...
When I'm using NJrat to control my own computer, I can't delete, open or move some files. Are there some kind of security access I need to stop first? How can I change this to allow full access?
In the IPS reports i see multiple counts of the same exploit from the same source ip. I wonder why would someone continue to attempt exploiting a vulnerability when he must have realized in the first attempt only that the exploit was blocked?
Dont know. maybe I was to unprecise.... I basically am asking if a SSL-VPN solution is solving both the encryption and the authentication, like that the user authenticates himself to the vpn-client with a certificate and by setup of the vpn-solution this will solve both the need for encryption(vpn with tls) and the str...
I'm currently with a web hosting account whose servers seem to be constantly down due to DDOS attacks. I check my analytics daily and I'm seeing a major surge in fake traffic for several of my URLs totaling around 60 visits a day per site. Most of these are from Russia and through sources such as buttons-for-websites.c...
The purpose is the same as with hashing: given set of confidential documents, I want to process them and store something secure like salted hashes/bcrypt. Later, when new document is given, I want to check if it already exists in database. Something like leak monitoring. The problem is that if this new document is sl...
After reading this and this, I am wondering if it is considered secure to use the default ASP.NET sessionID as a means to authenticate the user. I know it would be better to implement ASP.Identity, which has a much longer 'fedAuth' cookie next to the ASP session mechanism, however due to constraints, this is very diffi...
Here is the context: to transmit FATCA data to US IRS service the IDES protocol defines the following steps sign the XML Payload.xml file with enveloping signature, SHA-256 with RSA private key, as Payload-signed.xml. pack the signed XML Payload-signed.xml file into a zip file Payload.zip generate a single-usage 32 b...
I'm trying to recover my router username and password without resetting the router for educational purposes. I read that Hydra can be used for "brute-forcing" http-get-form authentication that most routers use. They classify bruteforcing as a dictionary/wordlist attack. Bruteforcing is generating every possible combi...
It looks to me like FileVault 2 uses AES 256 bit encryption for the desk. Does that mean that it meets the HIPAA "data at rest" standard? Is there something else I need to check about it?
The way I understood traditionally for email confirmations to work is the user registers to the site with their email and then to login they must verify their email. If they have not verified their email they simply cannot log in. I noticed some major website for instance allow you to register and login without emai...
I'm wondering why AJAX is not used to log in nor register in most of the pages and it's used PHP reloading the whole page. Is it about security, or it's just that it's not practical at all?
I heard someone say that ethernet connection is vulerable if someone can connect to your LAN, and that the traffic isn't encrypted in the way it might be if you're using WPA wifi encryption. Is this true? And should I stop connecting via ethernet if the connection is not encrypted? I am connected directly to my cabl...
Is there a possibility that malware on a computer could be providing remote access to an external party without the computer user being aware? I.e., some kind of hidden active remote access tool? I.e., the computer I am using now, is there some chance an external user is viewing my active desktop without me being aware...
Recently I have been working with digital signatures. Some common reasons for applying a digital signature in communication are authenticity, integrity and non-repudiation. Do digital signatures also provide confidentiality?
I am looking for a cloud-based (i.e. not end-to-end) secure IM protocol or service. The first one comes to my mind is telegram. Here is a quote from telegram's privacy policy: Cloud Chats Telegram is a cloud service. We store messages, photos, videos and documents from your cloud chats on our servers, so that you can ...
I see many scripts for hacking Android device and getting root, critical access level. I see millions of people apply this to their devices and do not understand the risks. Why don't Android developers fix vulnerabilities that result in root access to a phone?
I am in the process of getting PCI. I am in the last step in which I would need a secure PC on my internal network. All the scans I must run are only available through a plugin in browsers for Windows & Mac OS X (not for available for Linux which is the most secured). Anyway, I was trying almost all the Windows version...
Here is the context: to transmit FATCA data to US IRS service the IDES protocol defines the following steps sign the XML Payload.xml file with enveloping signature, SHA-256 with RSA private key, as Payload-signed.xml. pack the signed XML Payload-signed.xml file into a zip file Payload.zip generate a single-usage 32 b...
I have heard that is better to never click to any link in an email. Is it a bad idea to click to a unsubscribe link? What is the best way to unsubscribe to undesired mails?
I am a newbie in security and cryptography, but I am developing Android applications and now wanna to dive deeper into the Android security mechanisms. I am trying to understand how CERT.rsa (as I know this public key from key pair) and signature returned by package manager are interconnected. PackageInfo packageInf...
In an extra from Edward Snowden's interview with John Oliver, Snowdon advises that a good password to use is one such as MargaretThatcheris110%SEXY.. Also, on the Errata Security blog, Robert Graham says on the matter: NSA leaker Edward Snowden recent suggested that a strong password would look like "MargaretThatche...
So i heard that obfuscating java script is useless and waste of time because anyone with a little of skill can decode your code. So i want to test that. This code will display a alert box saying hey if you execute it. But there is more code than that in there. So here is the code obfuscated more than once who can decod...
I am trying to send probe request to Access Points.But whenever I send a probe request packet it is padded with 0's i.e I see two packets on wireshark for every packet I send : a non-padded packet and a padded packet with 0's at the end.The padding changes the meaning of the tags in the packet and wireshark declares th...
Can anyone help me with the installation of SHA256 certificate? I have generated the certificate perfectly but there seems to be an error below: Kindly let me know why am getting the exclamation mark in the yellow triangular box at the Key Usage and why is it showing "Thumbprint alogrithm as "sha1" Here's the complete...
Malware files execute themselves after downloading them. Let's look at it from the point of view of a piece of ransomware like CryptoLocker, from Wikipedia: Crypyowall 3.0, uses a payload written in JavaScript as part of an email attachment, which downloads executables disguised as JPG images. and the ads redi...
I found an interesting product last night called the SanDisk ULLtradDimm SSD (product page), which essentially claims drastic performance gains by plugging an SSD into a standard DDR3 memory channel. As one of the features of this product is data retention after power loss, does this imply that otherwise secure data (s...
According to this post, Jeffrey Tippet (Microsoft employee) writes: WEP can run in two modes: shared and open. Despite the names, shared is actually less secure than open. Because of this, our telemetry shows that that only 0.1% (and declining) of Windows 7 users connect to these highly-insecure shared WEP netwo...
I would like to ask if there are 2^1000 possibilities to choose from, how long would it take go through them all on average? (in terms of min, hours or years) Note: This is not necessary related to passwords, but more into figuring out a random sequence Is there any metric/general rule of thumb that I can use to give ...
On the exploit websites I see security analysts and hackers targeting the /etc/passwd file when showing the proof of concept. If you have a local file inclusion or path traversal vulnerability on your server, and hackers are able to access (view, read, but NOT edit) the /etc/passwd file, what are the repercussions of t...
I am working on a web-service based crypto project in JAVA. The basic idea is for the client to send a SOAP request to a servlet to encrypt data. For data transmission I am using MIME/data-handlers and I noticed that MIME stores the data being transmitted in a temporary file if the size is larger then a given amount. E...
I am creating a system where there are multiple clients, each of which has a secure connection to a central server which could pass out shared secrets to each of them. I could be wrong, but I am under the impression that communicating securely if you have a shared secret is a solved problem. Are there any standard way...
Two questions: I've recently started building a basic Go web-server, and noticed that the API for starting a TLS web-server does not support a symmetrically encrypted private RSA key. The API is included below, and linked here: func (srv *Server) ListenAndServeTLS(certFile, keyFile string) error 1) Given that Go is a ...
We all appreciate smartcards because they secure private keys so they don't get exposed to the world. But in a production-environment it's often the case that smartcards are staying inserted for a long time (hours). Now two scenarios before the question follows: The PIN is stored by the (attacked?) application (like F...
I ran file on some Linux malware ELF files that I've acquired over the last couple of years. I noticed some oddities: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.0.0, not stripped ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linu...
The CVSS score for Logjam is (AV:N/AC:M/Au:N/C:N/I:P/A:N). As noted in that nice dynamic image interpretation, the Impact metric "Confidentiality" is described as "None" (C:N). But the description at Logjam notes "there is a passive network adversary able to eavesdrop" for Attack 1, and has a video displaying the pla...
I was recentely asked in the comments on some details on tamper-proofing of a smartcard in question. The term "FIPS-201" was used to specify what kind of details was needed. I understand that FIPS 140-2 defines four levels of hardware (/software) security for smartcards / software / HSMs for these devices to protect, u...
I'm reading s2n's docs (https://github.com/awslabs/s2n) where it is claimed that: https://github.com/awslabs/s2n#compartmentalized-random-number-generation The security of TLS and its associated encryption algorithms depends upon secure random number generation. s2n provides every thread with two separate random numbe...
I've published my OpenPGP key publicly on the MIT key server. Later I realized I needed to set the expiry date to an earlier date than the one the (sub-)key was published with. I managed to do this locally, but after I pushed the updated key to the server, it shows up as having two subkeys with the same ID. One of them...
I want to create (and update ongoing) a list of input vectors for my site, including forms (GET and POST etc). I am new to pen tesing, and have been pointed at Burp (free). I have Spidered my site, and see a comprehensive sitemap. What is the best way to filter that list (or otherwise) so I can get an idea around what ...
I was wondering what were the posible security (not efficieny) issues with this hash "function": Although not an actual function, this method turns a message of any length into a message of fixed length. Where it is infeasible to derive the message from the hash fixed length message. -Alice wants to send a (m)message ...
I had this couple of threads in here which talks about security assessment v/s risk assessments, but here the idea is completely different. Suppose, I had to breakdown qualitative tasks from the quantative ones, I would end up breaking these. I came up with this model and was wondering if I am on the right path to und...
I have Security Onion installed and doing full packet capture on my home network. I also have a firewall (pfSense) which does my routing. I have Security Onion sitting just behind my firewall and mirrored from a switch. It works great except I want to decrypt my SSL traffic. I would very much prefer to have the decrypt...
So this may be more appropriate for serverfault, but it seems like it belongs here. I was watching iftop on a server I control that can send data to arbitrary sources but can theoretically only receive traffic from other servers behind the reverse proxy. I noticed an odd URL that disappeared before I could tell if it w...
I am developing a service that will involve the direct debit of customers' accounts on a routine (weekly, monthly, etc.) basis, and so I'll need to store their information (BSB/routing number and account number) in my database. I am very concerned about security, and so my first thought was to not store this informatio...
I found some posts on this forum that explained that https settings are possible to crack. see here. Why is it possible to sniff an HTTPS / SSL request? And here is another post that mentions redirecting trusted certificates so as to fool the victim that they are connecting to the right people. If these claims are ...
I was surfing the web at 3 in the morning and I got a warning which seems to indicate a MITM attack. Does this mean the attacker was able to passive sniff my activity in real-time in order to launch the attack?
Why do phishing sites use pictures of the full site (e.g., they took screenshot and broke it up) instead of just copying the real HTML and modifying the target for form submission of username/password? It would seem a lot of people would notice that the text is not selectable or that interactive features do not work.
Assuming that a license can be a key (XXXX-XXXX-XXXX-XXXX), a file (license.xml or whatever), or a login for a dashboard on the vendor website, how would be a standard way to store and secure those licenses? I thought of getting a external HD or a flash drive, store, encrypt, inform the password for the people respons...
I have a number of questions regarding Key Serial Numbers (KSNs) in DUKPT: KSNs are 8 - 10 bytes long. Older implementation are 8 bytes whereas newer ones are 10 bytes. Do I risk being incompatible with some old system if I create 10 bytes long KSNs? KSNs have 3 components: a 21 bits transaction counter and remaining...
Assumptions: We have devices out in the field injected with keys derived from our one and only BDK. The devices encrypt data using the injected derived key. All our devices connect to our server where the data is decrypted. Our server connects to 2 different processors (A and B) for transaction processing. Now lets s...
In America and Europe, HTTPS is quite popular, but in most Asian countries it isn't. The majority of China, Japan and Korea's top websites don't use HTTPS. Are they using another method to protect the privacy and integrity of the exchanged data? If so, what method?
If a server uses public/private key authentication to access SSH, will there be any advantage of restricting the access of SSH over VPN? This link describes both approaches to solve brute force attacks but would one have an advantage against the other (Security-wise) and would the combination of both have any advantage...
I need to connect to a REST API using a WSSE header for authentication. Since WSSE still uses the weak SHA1 I believe a good nonce is important. I found very different implementations: * http://www.orocrm.com/documentation/index/current/cookbook/how-to-use-wsse-authentication * https://gist.github.com/borisguery/379285...
While working on a scenario, I got the error message "Server's certificates doesn't match the url". Is it necessary that the certificate given from the website must have its URL? Is it necessary that the certificate must have the complete name of the URL or will it also work if I use a part of URL?
I was testing WEP password cracking on my router. I had set a thirteen character password ("TESTING123456") and tried these commands: airmon-ng start wlan0 Then I started airodump-ng using this command: airodump-ng mon0 After this I performed "fake authentication" using: aireplay-ng -1 3 –a 98:fc:11:c9:14:22 mon0 Th...
I've been looking at webRTC and stun scripts in general and their ability to bypass VPN's. And have a few questions I hope someone can help me with. 1) Since using openVPN and other VPN protocols/methods normally sets the default adaptor to itself, (like makes the primary network device the TAP adaptor for VPN) how do...
I have a very long web form that could take hours for people to complete. The problem with this is when people take too long the CSRF token expires before they're done and when they hit submit they get a 403 error. To fix this issue I'm thinking of doing an AJAX request every hour to update the session and extend the t...
This is mostly a question out of idle curiousity. If I use my private key to sign a file today, forming a signature, and distribute that signature with the document to someone they can then use my public key (which they've obtained out-of-band in a secure manner) and the signature and verify the document remains unalte...
I'm curious about compiling with gcc/g++/clang with the assumption that headers and implementation files are user-provided, but not the build configuration. (i.e., no cd lib && make) What if the user could provide object files to link against too (static libraries)? How about user-provided compiler/linker flags thrown ...
Are there good resources or good practices on how to estimate the cost for implementing security measures in a company? My purpose is to justify to management that they need to spend this amount to beef up the security of our company in our industry. I believe some sort of standardised risk management tool can help. Or...
I'm currently facing a key pinning error when trying to access the torproject.org website with Firefox. Is anyone facing the same problem? Does anyone know if they changed their certificate? If not, it may be a man-in-the-middle currently running. Additional info : I get a *.opendns.com certificate Subject, signed by D...
Is there much of a difference between the two tables? Can you get one from the other? (i.e. hash -> rainbow) How do they work? Are there different variables (in reference to speed, strength, resources, size, etc) that other things depend on? An in depth explanation of the two as well as a compare and contrast would be ...
I've seen a few DMZ related questions here in the past, but wanted to ask one directly related to email. I've done some research on this, but wanted to ask the forums opinion. I know it's best practice not to have anything externally hit your LAN directly, but I've seen implementations where external hosted email is be...
I've got certificate 'sample cert' which is valid to '2015-12-31' but it was signed by root CA certificate. But when it was signing CA cert was valid to 2015-06-30'. So my question is, is today (2015-07-01) 'sample cert' is valid and can be used to validation of sign or not? Another way as I understand you can form thi...
I know this question was already asked here but unfortunately there are no satisfactory answers. Please correct me if I'm wrong, but if I have a p12 file the following two situations are possible: The whole p12 file is encrypted. But not only the whole file, also the contained private key (encryption of the private ke...
I have a page that is open (i.e. requires no login) and allows users to give quick feedback. This page is available on a single shared PC or tablet. The form itself has a CSRF token on it. Problem is that the time between people submitting responses could be longer than the PHP session time. Solutions seem to be: usin...