instruction
stringlengths
24
27.2k
I am downloading a file from a http site on an wifi network. Is it possible(even theoretically) to change the contents of the file(or replace it with a malicious variant) during the download process?
So Im creating an API for an app that in the backend involves updating users, deleting users, and some other user related stuff. Im using the slim framework and I was wondering when the user wants to update there details (Name, email, phone) should I make the API retrieve an auth token or the users password before the ...
I've been reading about WebRTC, and I'm interested in using it for a drawing web application that uses real-time collaboration. However, as I understand, WebRTC communication requires all parties involved to know each other's IP address. If one of the users had a small following on social media and decided to collabor...
I'm building a Django website that does not need to have registration/authentication. The only sensitive part is a form with a reCaptcha v2. Of course I'm embedding the CSRF token, which then I read with Javascript and send it with Ajax requests. Is HTTPS needed in this case? I'm somewhat confused, since as far as I kn...
i'm trying to setup ArpON on my laptop running Ubuntu 14.04. I have a DHCP network so in the configuration i uncommented the DARPI line, then set RUN to yes. Then i started the daemon with sudo service arpon start, if i look at /var/log/arpon/arpon.log, everything seems to work correctly (however i had to manually add ...
I just finished creating my own remote administration tool "a server to multiple client one" using System.Net.Socket, - "Watch Dogs fan :P" then I try to search on google how they make or design their remote administration tool process and I found this Blog by Joseph Bisaillon, In his Basic RAT Design and other RAT De...
I'd like to know what the best methods are to prevent success of phising mails. This question contains the following subquestions: What are the best ways to determine incoming phising mails (on a Server and Client side)? What types of attachements/senders should generally be blocked? How do I explain/train my users ...
I have discovered a possible security flaw in a login for a site that many people rely on. I won't say the site but in the URL there is something similar to /Success?message=Success+please+wait+a+bit+for+results /Failure?message=Failure+Please+try+again I know all about XSS, and you can't get JavaScript to be embedde...
For example, the Tor network has recently been hit by a reveal of a major exploit in a research paper. Isn’t publishing the details on the exploits completely counter-productive as the developers of Tor can then find the exploit and issue a fix? Would it not be better to not publish a paper and instead work with the a...
I'm looking for the best way to describe the Browser Exploit Against SSL/TLS (BEAST) attack to non-technical people, without being too general. So I am not looking for: "did you ever noticed the lock in your browsing ensuring it is a secure connection?! When you are vulnerable to BEAST, it is not a secure connection an...
Cloudflare offers 3 free SSL options: Flexible SSL, Full SSL, and Full Strict SSL. The article “CloudFlare’s great new features and why I won’t use them” explores the shortcomings of the Flexible and Full (non-strict) SSL options. The Full Strict SSL option encrypts clients’ connections to Cloudflare, and also Cloudfla...
I have two questions regarding performance of John the Ripper. Within the format files, there is a variable named MIN_KEYS_PER_CRYPT and MAX_KEYS_PER_CRYPT. How much do they influence the performance. What will be the difference between setting them to 1 and setting them higher? Secondly: When I try to crack my salted ...
How do you usually conduct a safe phishing exercise to test the staff's security awareness? How do you ensure that staff are not offended by such an exercise? Would you in some circumstances also include the CEO without letting him/her know about it? I think in some areas it's quite a controversial thing to do in an o...
I'm looking for ensure the integrity of uploaded files and demonstrate this integrity to a user. In my current scenario, a user sends multiple files in several different formats, these files are transported to a storage device or location. I need to create a report provider a container with these files(eg. Zip), but...
I currently have an AWS setup with 3 VPCs, one for the bastion, then a Dev and a Prod VPC, those last two only being SSH accessible via the bastion of course (layout from this great guide). I'm looking for the best way to manage having between 3-5 users access the systems. Long term I hope to have automation and extern...
On a Linux machine, if we allowed the user bob with home directory /home/bob to put any content (malicious or not) into the file /home/bob/dangerfile.txt -rw-r--r-- 1 root root 61K Aug 24 13:59 dangerfile.txt Would this pose any security risk? Assuming that bob is not a root user, it seems like the only risk would be...
I really enjoy reading and researching about networking and pentesting. Recently I heard from a friend that there are ways that can be used to get into wireless networks without needing an adapter that supports monitor mode. He spoke about a Wireshark tweak but thats all he knew of. Hopefully someone here knows. anyway...
I'm posting this question from a moving train! (Ok, maybe that's not so impressive.) This train has an annoying WiFi - it's low-throughput, high-latency, tends to lose packets, and blocks most kinds of traffic (by port and by protocol most probably). Specifically, it allows HTTPS, but does not allow SSH (pretty sure it...
I've seen plenty of ink spilled by now about how Docker is not sufficiently isolated to allow arbitrary containers to be run in a multi-tenant environment, and that makes sense. "If it's root in Docker, consider it root in the host machine." What about non-root though? If I want to take some untrusted code and run it i...
I have an authentication system, where the passwords are stored with bcrypt hash (node passport module). My server generates a random key (128bytes) at startup. Whenever a user logs in, the server calculates the SHA-1 of his password (right after a successful authentication), encrypts it using AES with the randomly gen...
From a design perspective, is it a good idea to put servers that need to perform outbound connections to internet in a separate DMZ? These servers would be servers like web filters, WSUS servers, etc.
I've been doing some research into some DRM solutions, specifically "self-protecting containers". One example of this is DigiBox. Normally, the protected data is encrypted in some kind of container. However, once the data is in use, it is decrypted in memory. What is stopping me from copying that data from memory and i...
I'm coming from a Linux world so I'm a bit at a disadvantage here. Assuming a windows Task scheduler script that calls a stored procedure to return some rows, and transmit a file over email or SFTP - what would be the best way to pass SQL Server credentials. Both the script machine and SQL Server 2014 are running on a...
We know that Oracle publishes Java updates due to vulnerabilities / security issues and therefore we should make sure that we have installed the latest version of Java. Now there exist programs like ExcelsiorJet which compile Java applications to native code. I am using such an application and I can see it uses Java 7 ...
I've heard about Ghostery, a browser extension/plugin that blocks web trackers. But according to this link it sells our data. Are add-ons and plugins open source in Firefox? Is there another alternative to Ghostery?
A simple question, where do you place PHP files on a server? I can't seem to find any good information on this. Obviously public files should be in the document root somewhere/somehow, since they need to be accessed, but what about the rest of the files, all the classes etc? I am attempting to refactor a single page ...
I am planning to setup a malware analysis lab in the Incident Response team of the company I work for. As I am basically a malware analyst I some how managed to get up with the malware analysis lab setup. Now I want to your help in setting up network for the lab. Here are the scenarios: I don't have my lab setup in a ...
I've been reading a lot of questions about security and hash functions on this site and others. I am not an expert, just a curious mind and in my understanding the more iterations used to hash a password, the better and you are supposed to get one output equals one input (modulo collision with broken functions). In thi...
I am making an application to create a password for a user. I am a bit baffled over how it all works though. Namely I want to be sure that my application will store the correct hash so the user can actually login! I found this code: pwhash=$(echo $password | mkpasswd -s -m sha-512) Now if I run the same password I get...
I want to set up an account for a certain service while remaining anonymous. This service requires phone activation and where I live it not possible to activate a sim card without submitting id to the telco provider (that's just the law here). Can I use some sort of virtual phone number get get around this? It doesn't ...
A colleague of mine has told me he doesn't see why there is a warning when visiting a HTTPS website with a self-signed certificate saying that the security may be compromised, but there is no warning when visiting a "regular" HTTP website, although the security could also be compromised. I have failed to think of an ar...
I'm trying to build a web application that can store passwords of other services like Facebook, Gmail ...etc. These passwords can be later retrieved and shown to the user. This has to be a web application and has to work with modern browsers. The application cannot have the concept of a master password that can be inpu...
I don't get how a HTTPS connection over Tor can be insecure. Where's the difference between a normal HTTPS connection and a Tor -> HTTP connection? Many sites recommend to use the Onion-URL instead of the HTTPS-URL. Where is the benefit?
We have a small business website that has been compromised. They are somehow getting customers order details and contacting them requesting their credit card details. We have had our web team and a third party IT company looking into it and we can't find out where the breach is. There seems to be no suspicious access ...
At my college dorm's Wi-Fi network, one device can play to any other network-connected, YouTube-enabled device on that network. Apple devices can also AirPlay to the one Apple TV connected here. How would the IT Staff here make the visibility from one device to another zero? In other words, how would a member of IT mak...
I am attempting to exploit URL with a reflected XSS as follows: http://domain.com/vuln_parm= The contents of vuln_parm gets returned to the user as follows: <div attrib1="" attrib2="" vulnattrib=""></div> This works from within Burp: http://domain.com/vuln_parm="style="background-image:url(someurl)" as it gets sent ...
I read that using Wi-Fi sense, we can share our Wi-Fi networks with others and it stores pre-shared keys on Microsoft servers. Please help me understand the below scenario: I am sharing my network (using Wi-Fi sense) and my Facebook friend who uses windows 10 comes over. How does that person connect to my network au...
The URL example.com/auth will automatically redirect the user (HTTP 302) to example.com/signed_in.SWF?token=SENSITIVE. Is it possible for an attacker to steal the token, using javascript or flash, in the following example? How? <!DOCTYPE html> <html> <body> <embed id="foo" src="https://example.com/auth"></...
Sometimes I look at the login history of my blog account (a Tumblr blog) to make sure no one else is logging in (because I have private posts that I want to keep private). Even though today I accessed my blog from the same computer as always, today my history showed that I was logging in from a different IP address tha...
Sometimes, CAs get compromised, like Diginotar or Comodo. In such an incident, anything can happen from individual certs being revoked to the entire tree being scrubbed from the cert store. A company that isn't aware of this in time might find themselves without a trusted CA. In case this happens, does TLS allow for a ...
I noticed this problem when I implemented the Facebook Like Button plugin on my website, and got this error in my browser console: Hmm, I'm assuming that Firefox is talking about the last request, which is to Facebook's API. But just to be sure... Alright, I guess they just haven't gotten around to updating yet. Bu...
I am concerned about the hacking of a root CA and want to buy 3 SSL certs from completely different providers who will independently validate my identity. Then at presentation time, I will send all 3 "certifications" to the client. What approaches exist to accommodate this need from either a protocol perspective, or c...
Does WhatsApp disclose the sender's IP address? Is it possible to get it by running netstat -a or via Wireshark?
I am trying to understand the difference between digital signature and digital certification and how they work as a whole together on a high level perspective. I hope gurus here can point to me if my understanding is wrong. When a user access a website, in order to encrypt communication between the the user and the we...
I am trying to monitor the traffic of some "smart devices" in my home (TV, coffee machine, ...) but most of them communicate over SSL. What possibilities are there to look into SSL encrypted traffic without paying a lot of money for some appliances? I do have the possibility to import my own certificates in some of t...
I have page which take URL on query and string and it. Then, you get redirected using 302 to another page, and the response of the page contains HTML code and the redirect header. Like this: <html><body> You are being <a href="The link where will redirect">redirected</a>. </body></html> My questions: Why there is HT...
Problem: I have a windows service running under the local system account. I have a blob of data that I want to store securely and persistently between reboots. I have decided to store it as a file( as opposed to a binary blob key in the windows registry?). Since I'm running in a service I cannot have user interaction t...
OK, this question might seem a no-brainer for a professional but keep in mind I am not a professional web developer so my knowledge in this field is very limited. I have been pondering over time trying to decide if I should make my website accessible with both HTTPS and HTTP (the less important pages not needing encryp...
Does anyone know if a Flash web application has access to local hard drive? What about OS information or hardware information? If I allow webcam and microphone access, how much information can it get about hardware, OS and computer? I'm asking because I'm worried how much information can 3rd party sites gather when I a...
So when you hit that forgot password link and enter your email address, it seems that sites (and other programmers I've spoken to) are one of either two mindsets; Notify the user whether or not the email address matched with one in the database and based on this advise whether a reset password email was set or; Immedi...
Could TRACE METHOD cause harm to my website? If this request is made: TRACE / <script>confirm("Java Script !")</script> HTTP/1.1 Host: xxxxxdomain.com X-Wing: <script>bar()</script> It returns a javascript confirm ( Java Script !). What can an attacker can do with this vulnerability?
Split DNS returns different results depending on the source IP. It's commonly promoted as significant security measure for internal resources, for limiting enumeration and discovery. I've had many issues with split DNS in the past, with programs that don't properly respect ttls. They cache resolution for a long time, a...
We have a Xiaomi Redmi 2 phone and a sim card in it. Yesterday we started receiving angry and swearing text messages. we called the numbers back and apparently a mass angry text messages have been sent out to random numbers. The sent us the screenshot of the message and our mobile number appears at the header. We are n...
Is there a way of locking a Linux system to work with a specific (pre-defined) hardware only? I am developing a commercial product and want to make it a bit harder for someone to clone the whole working system so I am thinking of tying the SW and HW together so that one would need special SW image for a given HW. My ex...
I have a code snippet which has the classic strcpy vulnerability int main(int argc, char argv[][]){ char buffer[8]; strcpy(buffer, argv[1]); } By disassembling the binary file, we can see rsp is decreased by 0x10 bytes (=16) So we can actually overwrite the rbp after 16 bytes and return address after 24 bytes...
I know that browsers show no difference to the user between OV and DV certificates, but what is a sure way to find out if a certificate IS or ISNT an OV certificate? Also, are there any technical differences in the cert?
Given that someone needs my encryption key to predict the output, can I encrypt arbitrary data (zeroes, system logs, personal photos) with AES and a secure passphrase, and use the result as a RSA/SSH/whatever key as if it was the output of a secure random number generator ?
What is a "roving" backdoor? I understand the general concept of a backdoor. Emphasis on keyword qualifier: "roving"...
I have below stated result on of the system by map: 443/tcp open ssl/http Apache httpd 2.0.52 ((CentOS)) | http-methods: GET HEAD POST OPTIONS TRACE | Potentially risky methods: TRACE |_See http://nmap.org/nsedoc/scripts/http-methods.html | http-robots.txt: 2 disallowed entries |_/internal/ /tmp/ |_http-title:...
One of our SSL certificates has expired and along with that so has the keys. I have a re-newed certificate but no re-newed keys. The posting Should I change the private key when renewing a certificate? leads me to think that the chaining is maintained with the new certificate (same CA). However, when testing the webs...
Flash is a hot bed of vulnerabilities. Chrome contains a built in version of Flash, running in sandboxed mode. Obviously, this method is safer than running Flash as a plugin in either Firefox or IE. But isn't it possible to find a zero day vulnerability in Flash and a way to break out of the sandbox as well? Isn't disa...
Recently my educational institution officially switched over from the their own wireless network to eduroam. If I understand correctly from the FAQ, credential authentication is performed on the servers at my educational institution no matter where I log in from: When a user tries to log on to the wireless network of ...
Why does SSH use public key crypto each time you connect to the server? RSA/DSA are computationally expensive, so why can't they just be used the first time to share a secret, and then in the future the shared secret can be used both for authentication with MACs and encrpytion with AES?
The optical fiber cable that supplies a business is used for clients and staff. The business has an online enquiry form for bookings on its web page. It also provides free WiFi access to clients and staff via a router in the main office. A password is required but is not specific to any user. In other words one passwo...
Is exploiting an Internet IP address as simple as exploiting a LAN IP address? i.e.: Scan that IP for vulnerabilities and open ports using tools like nmap or nikto Use a vulnerability and set the RHOST for that IP and exploit (using Metasploit for instance)
So when you hit that forgot password link and enter your email address, it seems that sites (and other programmers I've spoken to) are one of either two mindsets; Notify the user whether or not the email address matched with one in the database and based on this advise whether a reset password email was set or; Immedi...
I am working with Bro IDS and CIF ( cyber threat intelligence) using the Intel framework I am testing. How can I mitigate brute-force and dictionary-based attacks? I found that the mitigation with regard to brute-force takes more time compared to dictionary-based. I wonder if there is some difference between the mi...
I have been trying to analyze my router modem and see how it works and check for possible vulnerabilities in the system . and i would like some help . Router Security Research : router access ip : 192.168.1.1 first the web server do a check : if (user_level == -1) { location.href = "admin.html"; //if user_level ...
I have been trying to write a random number generator using the hardware of the phone. After reading other people's attempts and tried some. I came up with the following to generate the seed: Play a short pre-recorded white-noise on the phone's speaker. The mic gets the feedback, which then gets mixed in the playback...
We provide a freemium service to upload large files and download them later on. Using ClamAV, we scan every file for viruses after it is uploaded and before it can be downloaded. The file is deleted if a virus was found and a HTTP 404 is returned. Still Google Safe Browsing keeps detecting malware on our site: ...the...
Have you ever seen HTTP Response Splitting in laboratory environment? There are many examples for HTTP Response Splitting vulnerability. I used old PHP and managed to get 2 responses from server that are visible in wireshark: HTTP/1.1 302 Found Date: Sun, 30 Aug 2015 11:56:15 GMT Server: Apache/2.0.47 (Win32) mod_ssl/...
There have been quite a few news stories relating to the use of "Telemetry" in Windows 10 (and also now Windows 7/8) with suggestions that users would want to disable or remove these updates due to privacy concerns caused by sending this information to Microsoft. What I'm interested in are the details of what data is s...
Whenever I check integrity of a file using md5sum, I get a string of alphanumeric characters to compare and verify if it was downloaded correctly. Couldn't the concatenation of several of those strings be used as password? This would allow to 'store' the password in the clear, as long as I remember exactly which files...
Unsatisfied with existing software, I'm currently toying around with writing a web application honeypot. My question is: how do you draw the attention of attackers and automated attacking software to your honeypot?
If a MAC filter prevents you from connecting to a network, how can you break it or include your device's MAC in that filter?
I know it is not possible to perform a successful TCP Handshake with a spoofed IP-Address. However I wonder: Is it possible to spoof the IP once a TCP handshake was performed successfully? For example: Perform the handshake Use the session (with a different IP) and send a request The response is delivered to the spoof...
I'm writing a service which receives FHIR data and it stores it. FHIR is an HL7 healthcare information standard format which contains HTML by definition, embedded into a JSON or XML, (to ensure human-readability of the document) How should I perform input validation in this case, to still be able to avoid XSS and other...
I've read this article about CoreOS's new container runtime, rkt, and I'm curious about this section: Why not just fork Docker? From a security and composability perspective, the Docker process model - where everything runs through a central daemon - is fundamentally flawed. To “fix” Docker would essentially mean ...
When performing a MiTM attack, you generally need to specify the router's IP address and the "victim" IP address. I'm trying to demonstrate to a business owner why he needs to secure his network, but he says since I can't 'capture enough data to be useful' he sees no reason to put a simple password on his router. Is th...
I forgot the password of a EncFS folder (created, went to vacation, forgot). But I remember how the password was created (e.g. was a sequence of 4 dictionary words). So I decided to try to find the password - even if I'm absolutely not expert in system security. The only way I know to break a password is with brute for...
To my current understanding: A virus is a program that does not self replicate and relies on the host file being spread. It has malicious intent. A trojan is a program that is run by deceiving the user into appearing to be something legitimate, but has malicious intent. How are these different? To get a user to insta...
When I visit Microsoft.com, the LastPass dropdown lists my username/password for login.live.com. It does something similar for Playstation.com and several other sites. How does it know? Are these hard-coded into LastPass, or is there some markup or HTTP header or something on Live.com that specifies its credentials c...
I have been told, if I wanted to create virus signatures from infected files to use for detection in the future, I should be careful as some of them are prone to collision attacks?
Due to regulation, my company needs to be FIPS-compliant. I was looking at the current list of FIPS-approved cryptographical methods and I notice that neither bcrypt or PBKDF2 are in this list. Does that mean I should use salted SHA-512 for password storage? Is that a good idea?
I've learned the theory behind the SSL/TLS protocols and how effective they are to achieve a secure communication between clients and servers. Do all the implementations OpenSSL, PolarSSL, MatrixSSL, and Mozilla NSS use the same underlying theory of SSL and TLS? If so, does it mean that Heartbleed bug would change the ...
Here's a 2015 article arguing that Macro-based malware is making a comeback. Obviously running untrusted macros is bad news, but what are the specific problems? As far as I understand, VBA can do things like read files, delete files, monitor keystrokes (probably not globally, but definitely within excel), and make web...
Here's the situation: we have this professor this semester who is an excellent teacher and is very friendly, but he has some ego issues. He promised a few of us internships at Princeton, Stanford, etc. and backed it up by saying he studied in those universities and has a lot of influence there. Naturally we were drawn...
What's a security incident in information security? Can an unsuccessful attack (blocked by an IPS for instance) or an attack without real impact (a port scan for instance) be considered a security incident?
What proven methods exist for authentication of a user on remote, unconnected machines/devices where establishing unique login credentials for the users isn't practical due to the number of machines/devices? We have an application where we have a large number of industrial devices distributed around the world and we'd ...
I'm trying to get a certificate that's good for two subdomains. Essentially, the TLS equivalent of the human-level logical cert "*.*.example.com". I've tried: Name constraints: these work in the standard, but don't work in practice, mostly because OS X doesn't support them. Wildcard certs. A single * doesn't cut it: ...
FIDO U2F seems much more secure than one-time-passwords (OTP), especially TOTP, because of the challenge-response architecture. In what ways is a U2F user still vulnerable? I presume if a user's computer is compromised or the user loses their U2F dongle then all bets are off, right? But phishing no longer works? (I'm n...
So recently our (VPS CentOS6.5) server began hosting a WP site that was, or became, infected (via revslider plugin) with some kind of trojan (probably spam sender, as we ended up on Spamhaus list very quickly) The core (we think) is a nice little file called system.php http://pastebin.com/1Uyipejn Which seems to be tri...
Imagine you are a cab company that subcontracts independent drivers to drive within certain cities and towns. You send the subcontractor a link to a page that has fields for the subcontractor to enter and submit information (such as how much money they made on a job they were asked to do, or comments about the job). Th...
History seems to have come almost full circle where old issues are shown in new/emerging technologies. Background If you trust the operating system, Windows originally had the Control - Alt - Delete as a way to prevent TSR (Terminate and Stay Resident) programs from stealing passwords. It also invoked a GINA now the W...
My company has multiple web applications that we deploy to customer sites. Often the customer has the final say in deployment options in which often it shocks me. Many of these customers are deploying the web application to point to the deployed database using the same Active Directory credentials as a server administr...
I'm working on a small web application. The web application needs access to a database, so the application needs access to a database username and password. The application runs in an environment where virtual machines comes and goes and there are no persistent disks. The only environment configuration we can set up wh...
I could not understand why in the Client hello and Server hello in SSL Handshake client needs to send to server (publicly) a random number and vice versa. From these numbers a Pre-Master secret will be generated and will be sent encrypted with server's public key. (As I see it, a random Pre-Master secret could have bee...
I'll explain all the steps I've done so far and conclude with my question. using OpenSSL 1.0.1e-fips 11 Feb 2013 Generating a private and public key openssl genrsa -des3 -out private.pem 2048 openssl rsa -in private.pem -outform PEM -pubout -out public.pem signing a message with digest and private key openssl dgst -sh...
I want to integrate and test a terminal device (PED) with HSM Luna. But I'm not able to understand steps clearly, as to what is done when a new device is integrated. Can anyone please help with this. Things I know: Firstly, a BDK is generated. For every device to be integrated, we generate a KSN (which is essentially 5...
What data should be logged in a web application? From all the perspective such as security, user access, data modification, path traveled by a user in application and anything that matters.