instruction
stringlengths
24
27.2k
For example, when authenticating to a TLS protected service, and then closing the tab, you can sometimes reconnect to the service afterwards without re-authenticating. In preservation of perfect forward secrecy, the key should be deleted after the session terminates. Does the session only "terminate" when the browser c...
Suppose a person is running a Windows 7/8 operating system. If she/he uses the Tor web-browser, can Microsoft see what they are browsing? Would that not defeat the point of using Tor in the first place? Does Microsoft not parse through saved/captured data on non-Windows browsers the way it does for Internet Explorer?...
I need to encrypt all my traffic, because I often work in unsecure network environments. My questions is this: if I buy my server from VPS providers (amazon ec2, digitalocean, etc) - how secure will be my traffic if I often work with http/ftp protocols (unencrypted protocols) ? Can other clients from the same networ...
Is there a website with a key derivation function running entirely in client-side Javascript? The string which is used to generate the key cannot be seen outside the client. It shouldn't use a run-of-the-mill hash function like SHA2 but something more suitable like Scrypt, and it should use a large character set, not j...
As in the question - how can I install a persistent backdoor with Metasploit on a Linux target?
Quick background: we are a smaller sized team meaning that we perform multi-function roles. Thus a developer is typically a DBA as well and some developers do have domain admin access. As a rule our team does not use the admin accounts (there are no anonymous admin accounts, each administrator has a designated admin ac...
I have a locked work file that I need access to. Unfortunately, the company that provided the file is no longer in existence and I can't track anyone down to help me out. The file is encrypted and can be unlocked using a "source key". The source key is stored in a clear text .DAT file, and you can have multiple source ...
I am using the Setoolkit on Ubuntu. I am testing it by cloning Facebook and logging myself in locally to see if I capture my own credentials. However,no POSTS are written to the harvester text file that SET creates to capture credentials. I have tried moving the files around and changing permissions, but nothing works....
I have a list of 1000 processes and I want to identify which of them are legitimate and which are not. I only have the name of the processes and I want to categorize them. Is there any way to get information of those processes programmatically? If I can at least identify which of them are common processes, that can he...
I have question regarding the server authentication during the SSL handshake. I am going to write this up as my understanding of the concept. Please feel free to point out any mistakes. We generate a CSR on the server which includes the public key of the server along with the ID information of the server. The CA verif...
We are required to write an "information security policy" for our company, and I want to know how much should we cover, and if there are any template or examples that would help.
My server is getting hit with a variety if requests like the following: Started GET "/key/values" ActionController::RoutingError (No route matches [GET] "/key/values") Started GET "/loaded" ActionController::RoutingError (No route matches [GET] "/loaded") Started GET "/top/left" ActionController::RoutingError (No rou...
Maybe my WordPress site is hacked, because it's always sending spam (5000 per day). I found one file in plugins folder which contains this base64 code. What should I do? EDIT: Oh, I found another one. EDIT 2: And another one.
I came across an old (>3 years) accounts information list which has been leaked to the web. The list included thousands (>10.000) of account details from a service or services. Apparently the event was a small-scale news item back in the days, so there's not too much to do now, even if the one page I found would be rem...
I was just informed of the StageFright vulnerability in Android devices. A specially crafted MMS message can gain access to data on the phone; so presumably it's a buffer overflow with subsequent privilege escalation. Details have not yet been disclosed, but the practical question is: how can common users defend again...
For example, one of my APIs is: Post request: /api/v0/login body: { "username":"xxx@ggg.com", "password":"eeeee" } I want to secure this API with NAXSI, but I could not find anywhere to config NAXSI to accept JSON in body (it supposes that there is SQL injection code in the body).
By the NMAP definition, unfiltered ports are the ones which cannot be determined to be open or closed since packet filtering prevents its probes from reaching the port. (ISBN 9780979958717 pag. 77) So that being said, is my assumption correct that every probe which manage to reach the port will always be properly repl...
This answer says there are a few ways of dealing with a blocked packet at a firewall: At each of these levels a 1st IP packet (and any other protocol packet as an ESP or AH packet) might receive 4 types of treatment: the packet is simply dropped (not any form of reply) the packet is droped and an ICMP type 3, code ...
We have a scenario like that we need to encrypt 100 bits of plain text using encryption algorithm like DES (algorithm takes 64bits plain text block and generate 64 bits of cypher text block, key using for encryption is 56bits) and want 100bits of cypher text. My question by using this scenario: Is the encryption algori...
My server (Ubuntu + LAMP) is infected, as I receive security alerts from the sites attacked from my IP. your Server/Customer with the IP: ********** has attacked one of our servers/partners. The attackers used the method/service: bruteforcelogin on: *Sat, ** *** 2015 17:15:17 +0200*. The time listed is from the s...
I don't know if this is the correct forum where to ask, but I didn't find anything more appropriate. I have a TP-Link router model TD-W8951ND, and three months ago I noticed that the network was getting slower each day. I then looked at the router settings, after various reboots and i noticed it had been changed, to a ...
This is a problem related to SSL handshake failures when an anti-virus (Kaspersky) is in between. From WireShark, I am able to notice the SSL handshake successful (i.e towards the end client sending “Client Key Exchange, Change Cipher Spec, Encrypted Handshake Message” and the server responding with “Change Cipher S...
Digital Trends describes the Stagefright Vulnerability thus: The exploit in question happens when a hacker sends a MMS message containing a video that includes malware code. What’s most alarming about it is that the victim doesn’t even have to open the message or watch the video in order to activate it. The built-in H...
A site (I won't name it) is using an input of type text for its password field in an HTML form. The onfocus method then changes those characters to dots. Is there a security breach here ? Or is it more secure than using an input of type password ? Or is it just a lost opportunity to leverage existing code ?
I found some destructive activity on my JBoss server and after a lot of google searching I found this exploit https://www.exploit-db.com/exploits/36575/ . I know the attacker uses this exploit to upload a shell on my server and I upgraded my JBoss server and the problem was solved successfully. In this exploit I found ...
I was thinking about creating my own hash+salt function, something like sha1(password + md5(login)), then I read here (part 4) that creating it's own hash+salt function is a bad idea, because if the hacker retrieve database content and code he can understand the mecanism behind it. So I've read the PHP manual for passw...
I have a fresh install of Arch Linux on a RaspberryPi model B. I'm setting up OpenVPN and using easy-rsa with OpenSSL 1.0.2d to generate initial keys and certificates. All went fine until I ran ./build-dh(script here). It was 24 hours later when I wrote this. I have previously configured OpenVPN on other devices and th...
I have been playing a game (.exe file downloaded from Internet) that supports the use of Textmods (altering of the game code in terms of textures) so long as they only affect visuals, and not actual game mechanics (leveling, trading, etc.). I am a bit skeptical to download these Textmods since they come from a third ...
I do not understand very well the difference between signature based vs behavior based antiviruses. Please clarify the distinction between the two.
I am using RIPS 0.55 to scan for static source code vulnerabilities. Currently when running it at the directory level it just gives the category and the list of files. Is there a way to extract which line of code the exact vulnerability is. Currently only way to find that out is through running 1 file at a time which...
Recently I've been implementing WebRTC in my project and would like to add security and privacy to the couple. I then decided to search on and found something if it is really necessary to impose security, it should be done at the application level. I do not remember if I read this in the API or security sites .. A...
When capturing my SSL session (using Chrome) I have noticed that the server chose TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02b) as the cipher-suite and the certificate signedcertificate signature was sha256WithRSAEncryption. How come the certificate uses RSA while the Cipher-suite is ECDSA? I found the answer: In TL...
Is there a way to ignore the not responding ports in the scan report? james@ahoi:~$ sudo hping3 -q --scan 1-1000 -S 192.168.0.1 Scanning 192.168.0.1 (192.168.0.1), port 1-1000 1000 ports to scan, use -V to see all the replies +----+-----------+---------+---+-----+-----+-----+ |port| serv name | flags |ttl| id | win ...
I am beginning to develop apps for Android and iOS that make API calls to a PHP web application that I will be developing. Users will be required to sign up with a username, password, and (optional) phone number and email, and I plan to keep this data in an SQL database. Users will be able to sign up from the phone app...
I'm trying to figure out the best way to encrypt passwords for a forums site I'm working on. I've decided I'm going to use an encryption such as blowfish. From my understanding, you have a key, and the text you want to encrypt. The encryption then uses the key to encrypt the text. When a user creates an account, I pla...
I have a pretty good understanding of X509 cryptography etc, from my career in the smart card industry. So I know that the card scheme (e.g. Visa, MasterCard) is the highest level of trust - they sign issuer keys for subsequent diversification and use on ranges of smart cards, and the issuer then signs individual card ...
My goal is to implement asymmetric encryption in an ASP.NET website to secure user-entered Social Security Numbers. I want to encrypt the SSNs with a public key, and only display a masked version, to the user (ie XXX-XX-1234). (A separate application running apart from the website will have access to the private key an...
I've been working on a setup using VirtualBox that uses the Whonix Gateway as a Tor middlebox and I am planning on using Ubuntu for the workstation. I don't plan on storing any information on the Ubuntu VM since I only want to use it for secure browsing. My question is whether or not it would be more secure to simply c...
I want to be able to prove that a given content returned by a HTTPS server was in fact served. I have looked over the whole TLS protocol and I found I can use ServerKeyExchange to get the server's signature of a random string that I can send to the server, in order to start the Diffie-Hellman exchange. However, I haven...
XSP is portable version of ASP.NET that allows for operation on OSX, Linux, and Windows. It's an alternative to IIS, and hosts its own web server, or can plug into existing web servers such as Apache. What deployment methodology of XSP offers the most security? Are there technical differences in the deployment optio...
I saw a question about Android's "Stagefright" vulnerability, and I got to thinking: other OS'es pre-process MMS messages to make it easier to view. iOS does it and shows a preview. Even BREW OS (the OS that comes with a basic flip/slider phone) has an option to auto-download an MMS. If the vulnerability operates by ex...
Is this an exploit of the email system of some sort? I receive a great deal of spam every day, and my accounts in Yahoo and Gmail sometimes show me spam emails from the future. Yes, the future. Sometimes it will give me a day ahead when they send it, which could mean they are a day ahead via time zones, but sometim...
My Website is flooded with unknown visiters Awstats says that my website getting thousands of hits in few seconds. I am using robots.txt and .htaccess, but the problem stays there. Please help me with this. Hosting service suspend my site because of this heavy traffic from unknown IP.
My girlfriend watched "some" pages on her iPhone and facebook.you-won.com page appeared. She didn't know how to get rid of that JavaScript alert, so she clicked OK. After that she closed the page, and sent me the link with message "what is that". I also clicked that link she sent. In Safari I found out, that it is some...
Connected cars are being mass produced by many car manufactures such as Audi, GM, Honda and Hyundai (Founding members of the Open Automotive Alliance). Recently I have read a scaring article about what crackers could do by hacking such a connected car. What are the most important technical skills or knowledge areas a c...
Edit I followed @begueradj advice in comments and posted the question on ServerFault : https://serverfault.com/questions/709340/openvpn-redirect-gateway-not-working-on-3g-cellular Original Question I have trouble setting up an OpenVPN server on Ubuntu 14.04. I followed this guide from Digital Ocean step by step and it...
Please Consider: English is my second language. On the Security Now! podcast episode 518 (HORNET: A Fix for TOR?), at the 27:51 mark Steve Gibson quotes an example of vulnerable code in C/C++: "[...] one of them [problems with vulnerable code] is creating a new array of a certain size [...]. And the fix is 'of a c...
In our company we have more than 100 employers and everyone use several online applications daily. To access all of this sites they need a password which was now stored very insecurely. so I'm planning to deploy a centralized password manager that can access via web browser within our local area network. I read little...
I am currently reading the "NMAP Network Scanning" book by Gordon Fyodor Lyon. On page 77 there is a description on how NMAP categorizes the ports based on host's responses (or not). What would help me to better understand them is a clear association to the flags returned by the host. Therefore I created the list below...
I'm about to graduate in "Computer Science", and I'm writing thesis about the Javascript vulnerabilities. In particular, I'm analyzing the JS vulnerabilities that allow XSS attacks. I would like to report in a specific chapter some famous attack which exploited JS vulnerabilities. Does anyone know the existence of su...
We need to strengthen the network communication between our systems, a mix of Windows, Linux and Embedded devices, written in C++ and C#. What we want to achieve is to prevent interception of our data and, if possible, prevent unauthorized connections to our systems. We're currently looking at using SSL and I'm therefo...
I want to to ensure that every file on my webserver is secured. The problems I am having right now: If you go to my website, and enter a url like mywebsite.com/img/ if there is no index page in there, then you will have a list of all the files and folders. I have seen other sites redirect you to their main index page...
How can I modify the output alert from sfportscan ? Ex : output alert_csv: /var/log/snort/portscan.log timestamp,src,dst,dstport,msg OBS: I can set output for default alert file with this method ?
Background We are designing a computer based test system where the examinees use their own computers to write their answers. The examinees' computers are booted to a custom Linux OS from USB drives provided by the examiner. The USB drives that are used to boot the examinees' computers all contain exactly the same OS im...
I have been digging into Google Drive while I am trying to investigate a proper way to protect files on a site. In my experience if a user has the URL to a file they can access it without any protection, like Facebook images for example. However, Google Drive has a different method. For example an image has the path s...
I think every AV-Scanner is using some predictable recursive scan to search files for malware. Couldn't malware easily detect a scan and just move to an already checked location, determined by knowing which algorithms certain AV-Scanner uses ? Is there any mechanism in place by AV-Scanners to prevent such a behaviour? ...
Consider the assumption we are dealing with systems handling secret information which is crucial for an organization's existence. I would like to know what is a good balance between security requirements and usability when it comes to password complexity, password change policy, multi-authentication factor requirements...
As I am delving into different forms of session authentication and persistence, I started to question how tokens are stored and the risk of a token being compromised. The scenario I have in mind is as follows: A user has synced their smart phone to a social media account, and an OAuth2 token was granted. This token has...
I'm developing a password manager web app. It's just for fun: I'm not exposing anybody's passwords. My idea was to use hashing+salting, and that's what I did for the master password. But then I realised that I have to retrieve accounts' passwords in order to use them (and I felt a bit stupid), so that hashing is not a...
A friend of mine managed to expose both id_rsa and id_rsa.pub file from his server via apache. I mentioned to him that this is serious security issue but he brushed this off like it was no big deal. Since I don't possess enough security knowledge to explain to him why this is bad can someone help me out here? Or maybe ...
Do you know of any good free platform in which we can practice different attack vectors and vulnerabilities such as XSS, SQL injection, low-level hacking, reverse engineering, etc.? For example, I liked Smash The Stack back then. (Note: it's not recommended to get into the Tags section, Just SSH to the server and start...
I have registered a new domain for a project. The hosting is actually done by a vendor. I have set the nameservers according to the vendors specs. Now they are requiring the cert in PFX format. When I go to provision the cert in godaddy (I know) it asks for the CSR. I'm not familiar with this at all, but after som...
I've been doing a lot of research regarding the requirements for source code scanning but haven't found anything conclusive when it comes to my question below. So I need some guidance from PCI Experts here in StackExchange's Info Sec community. Is a service provider using an in-house custom built payment application (n...
I just came to wonder, if you can low level format the disk of an Virtual Machine, maybe you guys can help me with that?
So, I'm terrible with any sort of coding, and I need help with generating a series of possible passwords. I've forgotten the combination of a password I put in for an email - I know the password, just not which letter was capitalized and which weren't. I'm trying to write some code to output all the possible outcomes o...
I want to set up a MailServer on Ubuntu for my website, and access the email from my POP3 client without enabling SSL encryption (I suppose the SSL is used to encrypt the password?). My questions are: What is possible for a "bad actor" to do in such a scenario? I once read that all data on the internet is encrypted in...
In the bits that I've searched about this, I've seen a few people declare as word-of-god that you should only sanitize outputs and not inputs. Why? Would it not be safer to cover both ends?
Windows 10 was released with a new browser called Microsoft Edge. Interestingly, Internet Explorer is also installed on the same default install. Given that Chrome and Firefox tend to separate their cache, or even root certificate handling from other browsers, it would make sense to see how much is shared between IE ...
For a long time I've been dismissing and ignoring this popup, which is easy since it only appears at boot (or logon) which is once every few months: But recently I became suspicious after a crash (which killed my multi-month uptime) and opened the main dialog, to find the whole thing had been disabled: Most of the us...
Introduction 3 computers were sealed and taken from a persons apartment. Investigators invited him to unseal the PCs, they were intact and they started the cloning process, however the hashes were just photographed by an expert without putting them into a document and giving it to the one who's being investigated, sayi...
I was after a little bit of advice regarding Network Management. Users will enter the network and hit a remote desktop server. On from this, they will pass through firewalls to the core switch. When they hit the core switch they are heading to a Network Management Server. This has dual NICs. One of these NICs is in th...
I want to communicate from an embedded device that only has SSL for encryption with an intranet-server that can receive HTTPS. Will SSL encrypted HTTP string be interpreted as HTTPS? or is there more to HTTPS than just sending a HTTP string over SSL?
I have a fresh install of Arch Linux on a RaspberryPi model B. I'm setting up OpenVPN and using easy-rsa to generate initial keys and certificates. All went fine until I ran ./build-dh. It is now 24 hours later and the script is still running. I have previously configured OpenVPN on other devices and the same Raspberr...
Can someone point me in using the correct OpenSSL commands to use a certain cipher suite. For example DHE-RSA-AES256-GCM-SHA384 (I am not using ECDH suite because of supposed NSA backdoor controversy/issues). As I will be using this on an internal network I would stick to TLSv1.2 (will be using Firefox 39.0 portable). ...
Does anybody know if it's possible to restrict VMware View copy/paste functionality depending on the source of the client? It seems VDIs can have GPOs set to configure copy/paste functionality, but we have some users accessing VDIs from internal systems where we'd like to enable copy/paste in and out of VDIs. But we al...
If a hard drive is encrypted, is it still possible to retrieve data off of it? What about if the password to decrypt it is known? If this is the case, given that OSX now encrypts your drive by default, does that mean every mac in the world, has data that cannot be retrieved after deletion?
I have some JS code below that is redirecting to a location taken from a HTML form. Is this vulnerable to an attack like DOM based XSS? document.theform.reference.onchange = function(){ var id = document.theform.reference.selectedIndex; var url = document.theform.reference[id].value; window.location.href = ...
I have a URL http://localhost/usernfo.php?id=8 on which SQL injection can be performed. How can I perform an Update, Insert or Delete command from this link after I have got the structure of the database?
I have discovered persistent XSS in blogger domain. I have reported vulnerability to Google Security Team and I received this is the response: Users are permitted to place arbitrary JavaScript, Flash, Java, etc, in their [username].blogspot.com domains; this is by design. These domains are fully isolated from othe...
According to Microsoft's privacy statement: To enable Cortana to provide personalized experiences and relevant suggestions, Microsoft collects and uses various types of data, such as your device location, data from your calendar, the apps you use, data from your emails and text messages, who you call, your contacts an...
When I was using "Zone Alarm Security" under Windows 98 SE, there was a toggle link feature under Zone Alarm, whereby I could instantly sever connectivity to the web, while a suspicious exploit was running - why isn't that feature available under all security packages like my current security product "McAfee® SaaS Endp...
Obviously TLS is a must for any and all secure authentication. Please turn your paranoia settings up to 11 for this. Background: (In case people are unfamiliar with the WebSocket (WS) protocol and its idiosyncrasies) The WebSocket TLS (WSS) connection is a different connection from the HTTP TLS connection. This means...
I have a simple program: void bug(char *arg1) { char name[128]; strcpy(name, arg1); printf("Hello %s\n", name); } int main(int argc, char **argv) { if (argc < 2) { printf("Usage: %s <your name>\n", argv[0]); return 0; } bug(argv[1]); return 0; } Machine: Ubuntu 14.04.1...
Future Intel processors will support SGX (Software Guard Extensions), which allows running security-critical software on your processor in a way that is isolated from all the other code. The hardware provides secure isolation, so other code can't tamper with the security-critical code running in the SGX enclave. Even...
There are a lot of websites where it is claimed something akin to this but no explanation on the basis. "ECC key size of 256 bits is equivalent to a 3072-bit RSA key and 10,000 times stronger than a 2048-bit RSA key" Q: What is the basis of this claim about the 10K factor? Where does the 10K come in? I see the compara...
We process a lot of batch files and do an initial batch file import via the LOAD DATA LOCAL INFILE call in MySQL. Is there a tool / standard out there that can scan or help to mitigate SQL injection from this import process?
In web application development, how can I uniquely identify an user when cookies are not an option and IPs are dynamic? Are the patterns which I can combine and then created a hash to be used as a UID?
I'm designing an API authentication mechanism similar to the one AWS use. As part of that, I need to look up which public key belongs to which user to verify. The public keys come from x509 certificates that we issued to user, so I know they have both serial number and subject key identifier (SKID). Should I use the se...
I see in this post that the main difference is that KDF outputs have "certain randomness properties", and I don't understand what does it mean. Suposing that that "certain randomness properties" are for protect from rainbow tables and that precomputed stuff. But using hash with proper salting we can also protect from ...
I was at a friend's house who uses VOIP on his own private WiFi for his phone calls. He made a call over VOIP (Voice Over Internet Protocol) that included the need to verbally state his credit card number over the telephone (he was ordering food). After the call, he turned to me, and asked: "Is it safe to give out a c...
I use Cyberghost to browse the web on public wifi. How secure is the network adapter? Cyberghost uses OpenVPN which utilizes TAP Windows Adapter V9. I am asking this, because I believe at the current public wifi I use. The owner and employees are able to view my internet traffic. Even while using Cyberghost.
An elderly friend received a telephone call similar to this Information Security SE post and this one. The caller claimed that my friend's computer had a problem that needed to be fixed. My friend was savvy enough to quickly identify this as a scam, and refused to provide any information. What set the call apart from ...
Recently I got an email from, let's say, “Company X” saying: some banks provide updated expiration dates for automatically renewing subscriptions I find it really hard to imagine that my bank would go around giving out my updated expiration date to companies so that they can charge me more money. If this were the cas...
I am going to use Tails to connect to Tor through VPN which has AES-256 data encryption, SHA-256 data authentication and RSA-4096 handshake encryption on my Mac on my school's WiFi (as public as I can get). Is there anything I can do to make it more anonymous and make it so that no one can trace me back? Maybe I could ...
The green light on my laptop's camera just flashed on and then off after 1 second. I am extremely concerned about this since I am not running any programs which could have enabled the camera. I checked Console.app and found only this: AppleCamIn::power_on_hardware In Sharing settings, I only had File Sharing enabled f...
Microsoft is deploying a new feature, WiFi Sense, which provides users a way to easily share passwords to wireless networks with all of their contacts. This introduces a new security failure mode: a user might decide to share a wifi network password that maybe they shouldn't have. All it takes one user to share the w...
Let's suppose a host machine in the client environment has been infected and its performing port scanning on other machine within the LAN or same Network without passing through Firewall: On what basis we can write an Alert in SIEM Tool to catch this port scanning. Window machine logged these kind of activity or not. ...
The Common Vulnerability Scoring System (CVSS) allows, among other things, to quantify the severity of software vulnerabilities. What is the functional relationship between a CVSS and the associated risk? In other words, what would be the shape of the function risk(CVSS)=...? I am asking this because I would like to ha...
Pins in other contexts seem to usually be only four or six characters long, but this seems to be vulnerable to brute force attacks. However, I am not very knowledgeable about this, so there may very well be a method to prevent this. Is there?
Http sites like OpenSSL provide checksum for each source code tarball available for download HTTPS sites like GitHub usually do not provide checksum with 'download zip' option. Some sites although HTTPS do provide checksum. So if one has HTTPS, is checksum not necessary for file downloads? Please help me with some ex...