instruction
stringlengths
24
29.9k
I have this scenario: Webserver domain A. Generates sensitive information when a request from a browser is received but this information is not disclosed to the browser. Webserver domain B. Processes the information generated by webserver A on receiving a petition from the very same browser which contacted webserver A...
With the Snowden leaks, Google has been implicated in the activities of the NSA. There really is no way for ordinary citizens to know with certainty what the exact reality of this involvement is. In my mind, that lack of certainty makes all Google tech suspect: anything "Google" could be tainted with unknown elements...
In a situation where a web page is not using SSL and someone wants to attack to gain the username and password. How it can be done? Given the situations: Passwords are not stored in plain text. Client side used languages : JavaScript, HTML, CSS Server languages: any One can try server side/client side attack.
I recently removed and fixed a lot of backdoor trojans in some files in one of my servers, and I copied those files to my local computer. But the issue is that now that I run the virus scanner on my computer, it says they are dangerous and need to be deleted. So far as I know, you can't execute php files if they are n...
Is there a virus that attempted to foil generic decryption techniques? How did it do so? I need to know the virus name, because I tried searching and I am unable to locate any virus that did that, and the mechanism of the virus is not defined either.
I developed an android application that request to a REST service for do actions! My questions are: If anyone trace the requests and responses, Can he get the token from headers? Where should I store token in android client? If I store token in somewhere like SharedPreferences and user access that He can send fake req...
I'm monitoring a VM functioning as our production server. I noticed it has at many times, quite low entropy (/proc/sys/kernel/random/entropy_avail). On average our server(which among other stuff does SSL, session-key generation etc) runs with about 100-200 bits of available entropy. Is this anything to be concerned wit...
My bank employs a step in its authentication process besides [the card itself and] the regular password, where the user has a secondary password (3 small sequences of letters, such as Hy X Ba) previously given to him (not chosen at will). When authenticating, he is presented with 8 options such as: 1) Vi - A - Ha - Re...
In this question I am referring to DLLs listed in URLs such as this one: http://survey1.sendyouropinions.com/mrIWeb/mrIWeb.dll When this kind of URL is navigated to, is the code in the DLL executed on the remote machine (like e.g. a PHP page) or on the users own machine?
<script> Something.execute("injectionpoint"); }, true); </script> I am trying to bypass an XSS filter but its not working since since " is filtered as \" or ;\" depending on where " is placed./ is filtered as \/.Any // present in payload is stripped out Other characters such as ( ) , < , > , -- are not filtered Here...
I made a CMS (using PHP) that is basically drag and drop to be live (under linux/apache hosts), now I need the communications between the administrative/login pages of said CMS and the client (recent firefox/chrome) to be safe. I wanted to use a basic auth system working under TLS. That would be great but the certific...
I'm developing a system that has to store Finnish national identification numbers as securely as possible while allowing "does this identification number exist in the system?"-type queries over a web API. At first glance, the answer might seem obvious: store a salted hash of the number, so that when you're given an API...
So for example this site, security.stackexchange.com, when I look in my browser it doesn't say that it uses https and it does say that my connection is not encrypted. The same goes for, say, twitch.tv. When you log in to this site, security.stackexchange, it does say that it uses https, but when I'm just browsing the s...
There have been many reports of hackers compromising credit card information in the databases of online shopping websites. Will deleting my credit card information from my account after every transaction be effective in securing it from this kind of theft?
When I check my Macbook's network settings, I see some unfamiliar wifi networks from distant places like famous hotels. It's impossible to connect to those networks because I've never been to those places before. Is it evidence that shows that I'm hacked?
I was wondering if it is possible through some means to isolate processes (or preferably guest VMs) to physical sticks of RAM. This would be to prevent row hammer like attacks from using physical layer vulnerabilities for breaking out of isolation across security domains (with each security domain being isolated to phy...
We've been hacked for the 2nd time without knowing how/who did it. Luckily we were able to shutdown everything! We're trying to deploy Honeypot to be in control of what is going on from our local and global connections. but I've few concerns. How could the honeypot be risk when its virtual system ? How it can be use...
Is there a reliable (in terms of security), open-source application for handling (send/receive + en-/decrypt) encrypted emails on Android? Something like TextSecure for emails. I just found a command line implementation of GPG on f-droid but this is really impractical in everyday use.
While most documentation I've read states that there is no requirement to have the AIA extension in a self-signed Root certificate (logical enough), I can't find anything that tells me not to do so in the certificates issued by the Root. In fact, most examples I've found has the Root CA issuing certificates with an AI...
I have a web api that connects to my SQL Server using a read-only connection and want to allow tech savvy users of my api to enter an SQL where clause on the querystring. I basically just want to tack what they enter onto the select statement. Does a least-privilege (select ability on one table only), read-only connec...
Passwords are hashed so that if someone gains access to a database of passwords then they won't know what the actual passwords are and so they can't log in. If I can get a valid password reset token however (the kind which would be emailed to a user when they've forgotten their password) then isn't this as good as a pa...
I am running Windows 8.1 Pro, Ideally I would like to have the top 5 Anti Virus installed but I am aware it is not advised as they can clash with each other. I was wondering if there is a favoured way to do go about this, the first thing that comes to mind is have only 1 of the 5 anti virus running at any time to avoid...
I was thinking of the following question for a long time and did not find a lot of material* in the web and nothing at all on Security.SE. I think its a very interesting question as it covers different anonymization measures (or counter measures to possible deanonymization measures of soft- & hardware) and within the m...
I'm using a debian7 VPS for hosting my websites. I have only installed webmin, apache, mysql, SSH and a wordpress website. I always update my packages and wordpress version. What is the best (free) user friendly tool to test my server for any possible security weaknesses? Also feel free to give me any tips that i would...
Is it possible for an attacker to restore passwords or encryption keys that one has used in a virtual machine the same way like restoring keys that have been used in a standard system applying a boot attack? I guess there should be no difference since the virtual machine is using the same hardware RAM like the guest o...
The Bell-LaPadula model is useful for access control. Can I use this model for access control in composite services? The security level of each service is exported from WS_SecurityPolicy file.
I have a website issue that I am addressing by storing an encryption key in a cookie. I want to describe my issue and my solution, and see if someone smarter about such things than I thinks this is a reasonable solution to my problem and/or if there is a better way to do it. My website allows a subscriber's customers ...
I have a new smart card with an on board PKCS#11 module and operate in a Win 8 environment. Like many cards, it can generate its own key pairs for enhanced security (only the public key can leave the card). The keys generated are not OTP keys, they are stored directly into one of the available PKCS#11 slots. In part...
Currently I am trying to recreate the Freak attack on a virtual machine. For this purpose I set up a Linux Mint 17.1 system with Apache 2.4.7 (with a self signed certificate) and OpenSSL 1.0.1f. I also modified the ssl.conf to get the following cipher suite: SSLCipherSuite ALL:+EXP:+HIGH:+MEDIUM:+LOW:+SSLv2:+eNULL SSLH...
I was connecting a bluetooth device to my tablet and noticed that when scanning for the devices one "device" was actually a Mac address. We (me and my husband) have been under a hacker attack already a month and I'm concerned about this Mac address. Those hackers messed up my husbands phone, it has been acting up ever ...
I have been trying to test a sniff on facebook POST request forms using wireshark (filtered HTTP). At login form, I would try login, and then check wireshark and see that no packet was captured. Strange enough, even the GET request of www.facebook.com wasn't always captured. Why is this? if wireshark can't capture a PO...
While decrypting a file by CBC mode of AES algorithm, the output length is 16 bytes lesser than that of the input length. For example if you pass a buffer of 512 bytes it decrypts 496 bytes. It happens only in CBC mode for the first call of EVP_DecryptUpdate(). Why is it so? while((bytes = fread (buffer, 1, 32, fp)) !=...
I am doing a project with an architecture of single server and multiple database. Every client request will contain a header containing database name that this request should connect. Is this a good idea for disclosing the database name ? Is this a security issue ?
EDIT: This is for the UK/Europe region. I've been scratching my head reading other posts similar to this one about safely storing bank routing and account numbers. I know that routing numbers can be plaintext in a database, as they are publicly available. I'm concerned about storing the account number however. I also k...
I would like to implement the following use case: User lands on the login page User submits login credentials Credentials are validated and they are redirected to another page for inputting the multi-factor authentication token User submits multi-factor authentication token Token is validated and user is redirected in...
The BIOS operates at a lower level than the OS, so antivirus software cannot scan it. Is there any other security software that we should use to protect the BIOS?
I have two servers in the datacenter. FreeBSD <--> Windows Server FreeBSD configured as a gateway for Windows Server. What is the best: FreeBSD has only firewall. All services are on the Win Server machine (e.g. firewall on FreeBSD, mail, web server on Windows Server) Services are on the both servers (e.g. mail/firewa...
DNSSEC is a suite of security extensions to enhance DNS security. (e.g.: avoid cache poisoning) However I was wondering how does the resolver know that the next NS will use DNSSEC? E.g.: Someone wants to resolve www.example.com.. Let's assume that the authoritative NS example.com. has DNSSEC enabled and properly config...
I'm currently setting up a new SQL database with DotEasy as my Hosting/Database provider. I've heard a lot about Diceware being one of the best methods of creating a really strong password, so I figured I'd use it to create a password for my database. DotEasy's form says that password strength must be over 55/100. So ...
I have an ssh server. earlier toady, I was about to login to my server, when I got a message that said something along the lines of "Someone may be trying to do something nasty" and indicating a man in the middle attack. I did not proceed to login. Instead, I shifted to a different network, and logged in. From the alt...
I'm new to SSH after a decade of dabbling with Ubuntu and other Linux builds. Today I successfully setup SSH, but I had a few hangups and headaches along the way. Although the system is now running properly, I'm not entirely sure how it's working, and that's driving me mad. The main headache I was running into for awhi...
Is it possible to XSS using a BitTorrent tracker. I have been hearing that you can use a torrent to perform XSS. Is it possible ? If so whats the general idea ?
.NET AppDomains provide several levels of isolation for untrusted or partially trusted code. The AppDomain sandbox is widely deployed in ASP.NET and Silverlight, although only the latter of these is designed to isolate completely untrusted code from the rest of the OS. Have there been any known escapes of AppDomain-bas...
Let's say I am hosting several services on my server, for instance, email and a web page. I am concerned that the web server software may have unknown vulnerabilities in it, which will allow an attacker to take over my machine. The attacker will then have access not only to my website, but also my emails! I could solve...
We're building a Wifi enabled device. The device will be installed locally on each client's office and people in the the small office will connect to this Wifi enabled device, They will send/receive sensitive data. As we cannot use signed/trusted certificate per client, how can we guarantee that two users who are conn...
I just got married, and my wife and I are in the midst of combining finances, etc. We set up a joint bank account and the first thing I do during the account setup phase is generate a 16-character password with LastPass. No, don't do that! How can I access it if you use LastPass? Just make it something simple to remem...
I have an ASUS RT-AC66U router, and I'm not the most tech-savvy individual. Earlier today, the router login prompt appeared in my browser, even though I hadn't gone to 192.168.1.1. I was nervous about it, so I installed the latest firmware update from the router web app (not ASUS's website), then decided to reset to fa...
I'm designing an application in which clients generate their own TLS certificates ad-hoc (there's no central authority). When two clients interact for a first time, I need for them to mutually check their peers' certificate. I know that fingerprints are generally used for this, but I need to keep this more newbie-frien...
How can I make nmap run the HTTP-scripts on ports that are unusual for HTTP, say TCP port 123? On something like nmap -n --script="http* ..." -p123 target nmap does nothing except to check that port 123 is open and runs no scripts against the port. (I verified that with nmap's tracing options.) Is it HTTP? The version ...
I received notifications that the CPU was maxed out. Using Process Manager in WHM, I could see that commands named "fuckyou" was running some kind of cron sript on our server. The file it was calling was found in a folder I haven't uploaded my self: /home/user/.lesshts/run.sh This is the content of that file: #!/bin/sh...
I have installed a SSL certificate on a server. Now, I want to check if it is correctly installed and is working. I have heard from my friend that when you are installing your own certificates in keystore the alias should be same as it is in the application code which communicates using port 443 with its partners havin...
I use a vpn server (supporting pptp and openvpn) built in to my router at home to make a secure connection back to my home network. I currently use OpenVPN with certificate authentication, but since my router only distributes the keys in the form of a .ovpn file and not with individual files, it is difficult to use wit...
Is it legal for me to write a small exploit (possibly to a closed issue) and put it up on the internet for everyone to see (as a tutorial)? I have been researching the legality of exploiting vulnerabilities and I came across CFAA (Computer Fraud and Abuse Act.) Looks like there is nothing in CFAA that explicitly preven...
I am trying to whitelist URLs for my PC but I want to eventually roll out the rules to my small company's firewall. But I'm having trouble with CDNs since a page may load content from many distinct URLs. Do CDNs do any content filter to allow me to trust general CDN URLs? (example *.cloudfront.net) or should this be ge...
I mean: does encrypting data multiple times have an effect on diffusion and confusion? Does it increase security, or does it have no effect? Is it useless? Does it make it harder to break the secret, or not?
I'm working on updating a web application. It currently creates a password for a user during sign up. Is asking the user to create the password themselves safer than relying on a generated password?
I would like to store user credentials in an OpenLDAP or similar directory server. A lot of online commentary about storing passwords in modern contexts recommends using password derivation schemes like PBKDF2, bcrypt and scrypt. It looks like OpenLDAP offers salted SHA1 as it's "most secure" storage option. Two quest...
Twitter released(some time ago) a new kit named Digits which allows the client to login with a phone number and an authorization code (received through sms). I find it great for the user experience and I was thinking to implement it on our app/website too but isn't this "very" insecure? I can imagine several issues: ...
I'm doing some research on DDoS attacks, and I seem to only be finding information on layer 3,4 and 7 attacks. When I saw 3/4 and 7 DDoS attacks, I figured they were the most popular, but there were also layers 1,2,5 and 6 layers as well. Are there more?
My company is receiving this message causing us to fail our TrustKeeper PCI compliance scan: Note to scan customer: This vulnerability is not recognized in the National Vulnerability Database. TLS v1.0 violates PCI DSS and is considered an automatic failing condition. According to: http://en.wikipedia.org/wiki/Transpor...
I've read this article about NSA allegedly stealing SIM cards from Gemalto which states: After a SIM card is manufactured, the encryption key, known as a “Ki,” is burned directly onto the chip. A copy of the key is also given to the cellular provider, allowing its network to recognize an individual’s phone. Is it rea...
Let's say I encrypt a message using AES/CBC twice, with the same key but two different IVs. Is this safe? Or can the resulting ciphertexts be used against each other to obtain information about the plaintext? Clarification: I understand that the point of using proper IV values is to prevent equivalent plaintexts from p...
I use to copy and paste my sudo password from a KeePass file so I guess the plain text user password will be saved in RAM at some point when I use it, for example, to accept an update. Is that right? Would it be theoretically possible for an attacker to extract this password string or a part of it by connecting the RAM...
When I browse the Internet (in any browser), there are extra ads. I thought it could be on my computer, tried Ubuntu live disk, and even there were these ads. Same ads are on my iOS and Android devices too. I did a hard reset on my mobile devices, but that didn't help either. I think these ads come from either my ISP ...
My computer got one of those Recycle bin viruses, e621ca05.exe. It's an old installation of Windows XP and I can't even enter safe mode because it was in a shaky state already. So I can't follow the steps describe everywhere to get rid of it. But anyway I should be able to find a registry entry or the process or servic...
Assume that attacker only could obtain ciphertext, but knows that method is symmetric. Is there a way to find which algorithm was used for the encrytion? And in general, if attacker knows the encryption method, is it helpful for the process of breaking or decryption? What types of breaking process is there in this si...
I have downloaded an entire copy of a website that has been used as a spam relay. I think I have tracked down the problem to a loophole in a contact form (now closed, but was not used, but still accessible hence why it was missed), however I would like to check the website files for injected code. Will a standard anti ...
Does a Unified Threat Management appliance (UTM) with Intrusion Prevention (IPS) enabled have the ability to prevent a DDoS attack? I have read some articles and none of them have a perfect explanation.
For example: a 10 MB file will be sliced to 10 pieces (each 1 MB) and then dispersed between network nodes. Each node will encrypt it with its own key and different algorithm (AES, TwoFish, Blowfish, DES, 3DES, ... ). (without using Rabin's ida or Shamir's secret sharing and so on). Only slicing in a simple way and the...
In the comments of a question on StackOverflow, OAuth2 Why do access tokens expire?, people are questioning how secure refresh tokens are. This comment is how I feel: So it provides some protection from packet sniffing, as long as the intercept only catches ordinary data requests (Chuck only gets the access token)...
I created an e-shop with e-books and they are stored in specific folder which is protected by a .htaccess file : Order deny,allow deny from all allow from 127.0.0.1 The IP is the IP of the webpage, so it is inaccessible to anyone except for the scripts. I was thinking about adding .htpasswd, but it seems like overkill...
If I host the CMS for my online website on localhost, will that mean that no one online can access it? If not, what is the most secure way to store your CMS?
I was building a RESTful Web Service when I came across JSON Web Tokens as an alternative to traditional cookies for authentication. The conceptual core of this method is that the server is the only agent that knows the secret key used to digest (commonly done using HS256) the payload, so only he can determine if the c...
I'm trying to understand what the differences are between an Internet Footprint, OSINT and footprinting. I'm reading the pentest-standard and they seem the same.
I'm trying to implement SSH2 key exchange in Java, and having some difficulties. The RFC4419 states, that: The server responds with: byte SSH_MSG_KEX_DH_GEX_REPLY string server public host key and certificates (K_S) mpint f string signature of H My question is - how the "server public host key and certifi...
My server returns private data in the body of an HTTPS response. It's not passwords or credit cards, but it is user-generated text and images, which should not be accessed by others. The data for a particular URL never changes, and could be cached for as long as I wanted. The performance benefit of caching is signific...
I want to mask myself and therefore I configured a proxy server. I use debian and squid 2.7. It actually works fine, however, I visited the site whatismyip.com and I can still see that I'm accessing via a proxy. However, I would like to mask myself completely as if the request came from the other machine. I know that I...
Is there any way to encrypt a Linux filesystem in such a way to maintain plausible deniability? E.g. "Hidden OS support," the way TrueCrypt and Veracrypt work, they only support Windows OS due to low level DISK IO (via filter driver) and support hasn't been extended to Linux. As you know, TrueCrypt is no longer in deve...
I'm confused on the difference between SHA-2 and SHA-256 and often hear them used interchangeably (which seems really wrong). I think SHA-2 a "family" of hash algorithms and SHA-256 a specific algorithm in that family. Is that correct? Can someone please clarify?
In terms of Authentication, Integrity and non-repudiation, is a handwritten scanned signature equivalent to its paper counterpart? For example, if you have a paper contract and you obtain a digital copy of it by scanning it, both are equally valid in a court in the event of a conflict? If not, what are the minimum mea...
I'm using phpmailer and to use it you have to set $mail->password I worry that my password is going to be accessible by hackers. Do I need to do something to protect it? I could put the password in the class file which is in a certain directory. Would that be secure? If I password protect that directory would the php s...
When the Tor exit node executes the client's request and receives a response from the server, it must create an onion cell that can be reversely decrypted along a circuit through the Tor network. Thus, the client must be the last one to decrypt, otherwise the contents of the request can be linked back to the client's I...
I am hosting some wordpress sites on an apache 2.4 webserver, and I have discovered thousands of entries in my server logs like this: 221.219.219.248 - - [09/Mar/2015:03:29:25 +1300] "GET /example.com/wp-login.php HTTP/1.1" 200 6656 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" 221.219.219....
Someone copied our WordPress based website and put it on another server and added adult content on it. It also includes our Google Analytics code so the traffic to this site also shows on our analytics data. Please some one suggest how to remove it and why did someone do this? This site also includes our Google doublec...
As a follow up to this great question and the answers provided I (as stubborn and naive as I am) still don't get why creating a secure voting system is practically impossible. First off why is anonymity so important? I don't see any democracy like Europe or america prosecuting those who didn't vote for the elected part...
We can get connected to those public WiFi hotspot without the account but can access to no website but the login page. As I tested, all those login website would respond to my ping even I was an unauthorized user. I wonder if there are some any restrictions that forbid the captive portal system to block the ICMP echo p...
Let's say we got an infected JPEG image that just by viewing it can automatically execute the malicious code stored inside it. It can do this either by taking advantage of the image viewer's security holes using buffer overflow or other techniques. Is the only place to store the code ready for execution, inside the EXI...
Assuming that I have an infected image containing a self-executing malicious code that targets my image viewer and executes when I open the file. Supposing also that my computer is completely clean and not infected by another malware that can read the hidden code in the image, this code could not have been encrypted. T...
JSON Web Token seems to be a very good tool to authenticate users. But I wonder if an attacker can take the token used by another user and use it for his own attacks. And to be more precise what makes this method more secure.
I'm learning Information Security, Actually I'm a software developer but for my work I need to learn a lot of Information Security, you know attacks and defenses, But I really don't know where to start, I would like to know if there is a list of categories or specific topics? I want to know just to arrive all the topic...
I am doing a piece of work on a imaginary device which allows the user to lock/unlock their vehicle and access a wireless hotspot in their car using an application on their smartphone via bluetooth. I am doing the threat modelling for this and am currently stuck on the application decomposition. It is only meant to be...
In terms of header, size and payload? We've been learning about DDOS attacks in class and they've been telling us all of the abstract ideas, but haven't told us what the actual makeup of the packets being sent would look like and I'm curious.
Microsoft doesn't allow sending public-key encrypted messages using Outlook 2003-2012 on Windows 7-8x environments without first creating your own Digital ID or private key for signing. Per Microsoft, before encrypting an email to someone else, "it is required that both parties have valid digital certificates for email...
By enabling X-Foward-For on our proxy, we would essentially be advertising our internal IP addresses externally. However, we use a private range. Everything goes through NAT. So, the best anyone would see is something similar to, 192.168.x.x. We came up with a scenario where an attacker could use the information in a p...
I'm learning about signatures using RSA and DSA, I've come across this little fact: RSA can recover the message digest from the signature, whereas in DSA this isn’t possible – you have to have the original message too in order to determine the digest. What are the implications of this? - Is the fact you can recover t...
My question is not about people who are proficient in hacking. I am wondering about websites run by acquaintances or friends of friends, who can use website analytics services provided by the website hosts for business purposes. They may innocently enough decide one day that they want to look up how many visitors viewe...
I want to ask if my code secure or not. if this is not secure please tell me the reason. This code is mixed of Rjindael-256, base64_encode and SHA-512. function xencoder($input,$key) { $salt = 'Q(i1V7X,k&_Ydk@8T5punQdL@S+Ih&kY6swz:)wg6n5!yOQ*q5iDtm^b49J#XTHB'; $key = substr(hash('sha512', base64_encode($key.$sa...
A number of years ago AOL leaked potentially identifiable information, because all of the searches leaked were associated with the same 'user', and as such they could be put together to identify the searcher. Search engines now claim they are cautious enough to encrypt their searches, but does that include seperating s...
I'm totally confused by the public key and private key terms. From my understanding, the "public key" is used for encrypting data, it's more like a lock which can lock something in and only the "private key" (key owner) can unlock it. So why call it "public key", why not call it "public lock"? If "public key" is the r...
I hashed the same password a lot of times (approximatively 1000 times) using the salted Linux MD5 format. I want to know if it's easier to recover the clear password or not. Is there something that can exploit these multiple applications of the hashing algorithm.