instruction
stringlengths
24
29.9k
I'm having a problem understanding the size of an RSA public key and its private key pair. I saw different key sizes for RSA algorithm (512, 1024,... for example), but is this the length of public key or the length of private key or are both equal in length? I already searched for it, but: In this question it is men...
How can RDP connections on the network be identified if they are no longer using TCP 3389 and instead using a non-standard port? If the administrator of a system changed the port for remote connections from 3389 to something else and not updated same in IDS or firewall, then how can someone detect the active remote con...
I am trying out the OpenVAS and the omp tool (version 5.0). I can connect to the OpenVAS manager and get the targets and configs but when I try to create a task, I get an error. $ omp -u test -w fa542f5d-7943-4a3a-800c-b3ec075dc5ea -T b493b7a8-7489-11df-a3ec-002264764cea Localhost $ omp -u test -w fa542f5d-7943-4...
A DoS (short for "denial of service") attack is a form of attack used on web services which aims to "crash" the service. Is there any motive of this form of attack besides crashing the service / website? For example, I could think of blackmailing/ doing harm to a competitor / political reasons as a direct motive for Do...
About ciphers that use ECDHE as Key Exchange and RSA as Authentication: How exactly this two algorithms work together, is ECDHE process encrypted by RSA public key? What are the DH parameters? Please explain this process as a whole, I'm in trouble to connected all parts of the authentication and key exchange process. ...
I got a TrueCrypt container which is using a 64 character password. This password contains all the different kind of characters available to me (upper case, lower case, digits, special). It's taken me a long while to remember this password, so I would not want to change it to a completely new password. What I am prot...
Sometimes when asking networking questions on StackExchange I want to publish some output where several internal IP adresses from my company appear (output of traceroute command for example). Since I know it is easy to link my StackExchange account to the company I work for, I was wondering if those IP adresses could b...
A friend of mine came to me for help with this issues. Her Gmail account has been hacked and keeps sending out spam emails to her contacts. This is happening to her on a monthly basis. Each time it happens she changes her password. She also went through and tweaked all her security settings. However, even after having ...
I'm looking at the code of a particular web application that handle file uploads. For some reason, instead of using the cryptographic hash function (SHA-256 in this case), they derive an ID from it, and use that everywhere instead, to identify files uniquely. The steps involved are as follows: Calculate the SHA-256 su...
I have searched for related topics, but found other existing answers to not be satisfactory, because they require installing special tools. This is a very common use case. For example, I want to share sensitive login credentials with other members of my team so that we can administer servers. Plaintext must be encryp...
I was reading through my infosec newsfeed and found this article: http://www.theguardian.com/technology/2015/may/27/iphone-crash-bug-text-imessage-ios It basically talks about a bug iOS has while parsing Arabic characters, specifically in notifications. Reading a bit further into the subject I learned that the bug is ...
Evidently, someone has discovered a Unicode bug in iOS, where if an app receives a specific Unicode sequence (infinitely-repeating Unicode code point), the OS will kill the Springboard as it allocates too much memory, restarting it immediately. I can't include the sequence here, because SE detects it and denies includi...
I am buying some products and have mostly communicated with the store via email. I am planning on paying by credit card, but the store doesn't have online billing. Normally, I would just phone the store and provide my credit card info but they are out of country and I can't make calls there. Is it safe to SMS my cre...
I recently found that my friend is using wifikill apk on his rooted android and I would like to get rid of that software as I always get kicked from my wifi. I have to give him the password of my wifi but he his been doing such things and I am pretending like I don't know. Is there anyway that I can make his wifikill ...
I have a minimal server install on a remote machine with a root password set to a temporary, but chosen, value. I have added a separate administrator user. This user has an authorized key for SSH, no password access, and passwordless sudo. I would like to remove any trace of the root password and lock the root user. Th...
I think we all heard the news that China used unencrypted HTTP-connections to drive DDoS attacks on targeted websites. Now within the last few months we've learned about three new attacks (FREAK/Logjam/POODLE) that allow us to recover the master-secret of SSL/TLS connections. So the following question came to my mind: ...
The POODLE vulnerability was discovered by Google in October 2014, and unlike heartbleed, it had a simple solution: just disable SSL v3. Now, most of the websites have disabled SSL v3 but ironically it is Google that still supports it. Any idea as to why Google still supports SSL v3? I tested the domain name in a POODL...
I was playing around with wpscan a little while ago. I was wondering if it makes sense to scan a site on your localhost server. I think that it is since there are examples like DVWA, but I imagine it does and doesn't for various other cases. Would it make sense to do this? If so, when might it not? I know there are a...
What if someone could steal a Certificate authority's private key? I know this will (probably) never happen, but what would happen to the certificates that were already signed with this private key? The person could start signing certificate as if he was the CA, but would it cause any harm to the certificates that were...
Various financial institutions, government agencies, etc., use public records information to confirm people's identities, as touched upon in UPS my choice -- How can I access my public records? The information often includes relatives, past addresses, banks that have serviced your loans, cars you've owned, etc. By def...
SQL injection attacks work by the attacker putting valid SQL into the text that goes back from the page to the server; something like Delete * from tblAccounts where 1=1. What I cannot understand is why this cannot be defeated by giving the account that a web user's post runs as read-only permissions. Not only that bu...
If the linux kernel is compiled to check for kernel modules signing, it checks the validity of the public key (X.509) w.r.t the current system time. For the first time the system is booting up, it hasn't received external time sync and the default time is still 1 Jan 1970. I am wondering how is this issue resolved in o...
I have created a New Trusted certification authority which issues certificate to the end entity and the end entity will use this certificate as trusted one for all their PKI operations. Some how the Root CA Key got compromised. Now my question here is how can I revoke the ROOT CA as its a self -signed ?
The question How to use TPM to perform platform authentication is basically asking if the TPM's EK can be used to "authenticate" a host/device. And one of the answers says The Endorsement Key (EK) is not directly accessible as this would be privacy issue - we could track a system using this unique identifier. But...
Lets say Alice@gmail.com wants to send message to Bob@secureMail.com Alice <--> gmail.com <--> secureMail.com <--> Bob We know gmail.com can read the unencrypted message. Is it possible for secureMail.com to receive the message such that only Bob can decrypt the message? If my understanding is correct, secureMail.com w...
So, long story short, I have been talking with a developer that is designing a website for us under a very high recommendation. They have had some break in's of late, and the developer has claimed it is all social engineering and falls under, 'not his problem'. With users current understanding, they have been very slac...
Is there any encryption algorithm that is generic across all platforms? Is RSA generic across SUN/IBM JRE? Another question: will base64Encoder / base64Decoder sun.misc.BASE64Decode / sun.misc.BASE64Encoder behave the same way in IBM JRE? Also are there differences in using this algorithms in the 32bit / 64bit JREs? If...
Wikipedia says: For example, if a certificate issued to "example.com" and issued by "Intermediate CA1", and the visiting web browser trusts "Root CA", trust may be established in the following manner: Certificate 1 - Issued To: example.com; Issued By: Intermediate CA 1 Certificate 2 - Issued To: Intermediate CA 1; Issu...
I just read that everyone in the world can ready my mails (if intercepted in traffic by eavesdropping?). Also, it reads that current versions (book's from 2004 so I assume that new versions adopt encryption policies) of Outlook and Eudora have built-in crypto. Is it sufficient or should I use PGP on every mail I send? ...
I am using CentOS 7. I need to give shell access to ssh users but restrict them in a jail. I have used jailkit to set up the jail. I have copied all necessary libraries, binaries that are needed for the user in the jailed environment. However, when the user logs in, he can cd into other directories in the jailed enviro...
I have developed different templates for local security policy. I have been using the program Nexpose to test the effects of those security policies but so far I am not able to detect the visible changes of policies on a vulnerability assessment tool. Can anyone guide me how can I measure the effect of local security p...
Recently we had an issue with the Exchange autodiscover.xml appending ".com" to our mail servers autodiscover address. It resulted in a certificate error due to the name not matching the certificate. After hunting that down and correcting it (by someone much smarter than me) I got to thinking how, other than by a dumb ...
A group of LINUX servers is using dm-crypt to encrypt data. The servers do not store data long-term but are only temporary stopping points for data before it is sent to other systems. The time the data is saved to disk on the server is typically minutes, but at peak time or if there are downstream outages could be sev...
A new server has just been installed but literally has nothing else running on it, no services setup to SSH in or anything yet (it's a Linux server). However, it is hooked up to the web so I can start pulling software down and installing it. So here is the question, is it at risk whilst it is plugged in? Obviously no ...
I have heard from others that there is a new worm called "moose". This actively targets and exploits home routers. What are the effects of this exploit? How can I protect myself from this? Can I check if my router is vulnerable?
I would like to consider three types of LAN: a) 2 computers are connected to a Hub, this Hub is connected to a router for e.g. internet access. b) 2 computers are connected to a Switch, this Switch is connected to a router for e.g. internet access. c) 2 computers are directly connected to the router (internal switch). ...
I apologize if this is an obvious question, I'm not very familiar with hardware. I am planning on hosting a few personal websites from my home, but I'm concerned about my security. I'm using a fairly old cable router (probably around 10 years old I would guess, it's ASUS RX3041). I was wondering if it would be possible...
I was wondering, does SSL protect from IP hijacking (an active, authenticated connection between two hosts is disrupted and the attacker takes the place of one of the hosts) and how?
I'm interested in blocking or reporting any application's usage of extended permissions, regardless if they are granted those rights, such as: GPS / Location / Wifi Radio signal data Telemetry My rational is related to a person's privacy. For example Facebook Messenger has an application-level icon to disable loca...
I had a friend try to convince me today that simply by signing into a wifi network, without any physical access to your computer, the network admin can see your computer's screen. Obviously this is false, but I don't enough about networking to explain why. Can someone explain what prevents a malicious network from hav...
My client has a wildcard certificate *.thierdomain.com that they are using for half a dozen of production web sites. For each of theses sites there are duplicates in several environments, dev, qa, pre-prod, etc. Up until now other environments than prod did not have a SSL certificate at all as there were no https speci...
I have been getting alerts from an anomaly based signatures for abnormally high SYN traffic. The traffic is coming from blackhole DNS servers. I hadn't had any experience with Blackhole servers prior to this so all of what I know has come from Wikipedia: http://en.wikipedia.org/wiki/Blackhole_server My question is: Why...
what is the required credentials for scanning a database server's vulnerabilities by using vulnerability assessment tools such as Rapid 7 Nexpose?
Recently I came across a gmail extension for Chrome browsers which claims to send self destructive emails. I tested by sending self destructive emails to my email account and it works fine Now my questions are few: Is there any way to determine if the email I receive is an self destructive email? Is there any way to p...
We currently use some certificates in our application and we identify them by using the certificate's thumbprint. Like this: <serviceCertificate> <certificateReference x509FindType="FindByThumbprint" findValue="xxxx" storeLocation="LocalMachine" storeName="My" /> </serviceCertificate> Unfortunately when the cer...
It seems that most sites or systems will just state Invalid username or password As a means to not reveal usernames for use in brute force (and other) attacks. Seems like a good idea as a general rule. However, many of them you can follow the forgotten password? link and quite often you can get This email addres...
I have a apache server running and following configuration for ssl: Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" SSLProtocol -all +TLSv1.2 SSLCompression Off SSLHonorCipherOrder on SSLCipherSuite "ECDH+AESGCM256:DH+AESGCM256:ECDH+AES256:SH+AES256:RSA+AESGCM256:RSA+AES256:!aNULL...
I want to know is there any way to hook (inline hook) an unexported API of a PE? I have this binary (PE 32 bit) which does not uses any DLL (A statically linked binary) and I would like to know what should be the approach to hook a function in this binary (in memory) ? Following is a thought of mine, but don't know ho...
I know it's not considered secure to grant GRANT ANY ROLE privilege to other users apart from admins. But what if the user is expired & locked? In particular, I see these 2 users having this privilege: SPATIAL_CSW_ADMIN_USR and SPATIAL_WFS_ADMIN_USR.
Why is Pubkey Authentication considered more secure than a password, and does this apply to my situation (described in more detail below)? I'm a scientist (no formal IT training), but I built and administer the small network for my research group. I'm not concerned with hardware key loggers being attached to our networ...
Currently looking at getting some of our web sites pen tested but there are some many companies offering the same, and who are probably using the same tools (not to mention the same wordpress layouts) I wondering if there is a modern approach that should be looked at, a company that's doing things a bit differently? S...
I recently bought a new domain name "familyname.net" and I redirect emails to this domain to my normal email address. Recently I received various emails, one of which came from Groupon to confirm the purchase of some things. The user used an email address sarah@familyname.net Groupon were useless in dealing with this, ...
CertiVox have designed a system with the aim of "getting rid of passwords". Essentially the system authenticates users with two factors of authentication: A 4 digit PIN and a token stored within the browser's HTML5 storage. There is also the option of authenticating with a mobile phone by entering a one time passcode w...
Im trying to figure out how SSL and ipsec works. I know the process in both SSL and ipsec but why do I need SSL if I can use IPsec when it runs below the transport layer. Wont IPsec encrypt everything ssl does? *What is the difference between the level of security provided by IPsec and SSL? If I use IPsec is SSL neces...
I ordered a certificate with SHA256 from Comodo and was wondering why Chrome shows this message: Your connection is encrypted with obsolete cryptography. The connection is encrypted using AES_256_CBC, with SHA1 for message authentication and DHE_RSA as the key exchange mechanism. It complains about SHA1 although the ...
Let's say I know the password starts with "1234" and after that there is a commonly used password. I would like to use the word list I have for the second part of the password, but to include somehow the "1234" before every password of the word list while cracking. It would be extremely time consuming to write a progra...
I have some HTTP logs where I see the hacker changing his IP every request, and occasionally changing his useragent. Is there a way to detect this automatically? Perhaps a snort rule? or any other way?
I have been tasked with evaluating Vault in our company and the first question asked by an architect was: If someone hacks our server, how can we prevent them from decrypting data stored in Vault? Due to my limited knowledge of Vault, I am unable to answer this question in a way that would satisfy an architect's mind...
What security advantages, if any, would be gained by enabling Firmware Password Protection on a mac that allready has filevault encryption for the disk?
I've been reading about the Logjam attack on Diffie-Hellman and about how to secure our TLC-based web servers based on the recent findings. The guide suggests that we create a Unique Diffie-Hellman group. As I understand the protocol, this group must be the same for only one TLS connection. That is, from the perspectiv...
Currently oscp student. I asked this on the oscp forum yesterday, but no responses so far. I am new to infosec, but have 18 years of education / work experience in IT. As far as I can tell, microsoft sysinternals tools will not work if you have a low priv shell that can't write to HKCU\Software\Sysinternals in the ...
Are there any utilities out there that can assist in building an IP exclusion list? Scenario: Recently suffered a brute force attack where 50000 failed login attempts came from a multitude of different IP addresses. Question: Is there a utility out there that can take a list of IP addresses and help build an IP exclusi...
Imagine a scenario that we are able to upload a PHP file on the server. However, we are not aware of the uploading path. I simply mean that, we are able to upload the file but we don't know where it would be stored after uploading. Is it possible to get the file path after the PHP script is uploaded? Somehow making the...
When we visit websites, unknowingly our computers can be a victims of a botnet. There should be a way to identify whether we are victims or not. What is the way to identify it and how to recover from it?
I have been learning about the SSL/TLS protocol (from https://www.rfc-editor.org/rfc/rfc5246) and have a few conceptual questions about the protocol. The client and server exchange "hello" messages during which they choose the SSL/TLS version and the cipher suites. More specifically, the client suggests a list of ciph...
I have had this functionality (csrf protection) for quite some time now. The thing I never liked about it is that it saved csrf tokens in the session file. While it may not be a real problem I see it as a pain because eventually tokens may build up so I need to utilize a gc mechanism and keep track of what was issued w...
Wondering if the following is sufficient for sanitizing input in a simple contact form that contains inputs for $name, $email, $phone, and $text. Thanks! There is no SQL. I am simply wondering if I am doing this right. <?php $name = $email = $phone = $text = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name =...
I have a big problem. I inadvertently deleted a partition, which I had installed win7 BitLocker Crypt, so the entire partition was encrypted. I found a recovery tool which is called "DiskInternals EFS recovery", that we managed to access my data from the lost partition but I had not recovered because I have low space t...
Just going to say this right now; this seems absolutely ludicrous. I've had a problem with playing Super Smash Bros. on Wii U ("Cannot connect to partner's device."; also happens for all Internet-based games [Splatoon, Monster Hunter 3, etc.]) Nintendo's support decided it'd be good for opening ports 1-65535. To make m...
Checking the data packets from many VoIP applications shows that SIP packets are encrypted with TLS. So the captured session shows no SIP signals at all, just simple TCP and TLS/SSL packets. But surprisingly, RTP packets are well visible, with (dynamic) payload type, SSRC and data. In many cases where RTP is encapsulat...
I have a decent firewall/router at home, and I was wondering whether it would be possible to use my home firewall for the connections that my phone makes, even when I'm not at home. It would mean better security when connecting to open wifi networks with my phone, and more explicit control over the connections that it ...
I am curious about the following claim from the Cryptsetup FAQ: 2.4 What is the difference between "plain" and LUKS format? First, unless you happen to understand the cryptographic background well, you should use LUKS. It does protect the user from a lot of common mistakes. Plain dm-crypt is for experts. After re...
EDIT: My VPN has port forwarded a 5-digit tcp/udp port for me. What kind of attacks am I opening the computer to with VPN port forwarding?
The title describes pretty well what I want to ask, because I just can't wrap my head around it. I understand the basics of breaking encrypted data with the method of kind-of-bruteforcing where you encrypt sample data then compare it to the encryption you want to crack. However I don't understand how cracking a sophist...
7c4a8d09ca3762af61e59520943dc26494f8941b This is 123456, I don't know what kind of encryption it is and all the passwords are saving as it in my database so i need to know
I'm studying port scanning. How can an attacker benefit from the information of checking TCP ports or UDP ports?
i am using an Android phone which is connected to my home Wifi Device(Tp Link) DSL Connection. Can my neighbour hack my mobile and monitor my mobile traffic through software like WireShark, etc.?
For encryption block looking like this: EB = 00 || BT || PS || 00 || Data where BT - block type and PS - padding string, I've read that we use three types of BT - 00, 01, 02. Now, since 00 and 01 are for private key operations (where 01 is recommended - why?), like signature, and 02 is for public key operations, like ...
I am developing native mobile client for store that requires user authentication in order to make purchases available. I have my web store page, authentication is provided by CMS (OpenCart). Now I need to implement secure and robust login on mobile devices. I am using REST API for getting data public data from web site...
I have a question about DeltaCRL with an entry which contains RemoveFromCRL reason. At the start, PKI has revoked the certificate with certificateHold reason. And create next CRL: Last Update: May 28 13:14:09 2015 GMT Next Update: Jun 27 13:14:09 2015 GMT Revoked Certificates: Serial Number: 12 Revocation Date...
I am running a trial of Cobalt Strike which runs over the Metasploit Framework. I am trying to perform an SSH related attack on my laptop, and I get the error in the title for all SSH related attacks. If I try to login via ssh (not an attack) using Metasploit I get an error for the username and pass I know is correct; ...
I've been using GnuPG with an offline master + online subkey setup for a while now. All my email is signed with the signing-only subkey and encryption is done with the encryption-only subkey. The subkeys are 4096 bits. This setup works well, but I wanted to improve security so I got a Yubikey Neo. Because the Yubikey o...
I recently read: You should sign your PGP public key immediately after generating your public/private key-pair. And now I wonder how I can check whether I already did that. So my question is: how can I tell if my own pgp public key is self-signed or not? I'm using GnuPG/MacGPG2 v2.0.
I am building an Apple iOS application that will have the following flow: A user completes registration from the web. Upon completion of registration, a link is sent to his email. Once the link is clicked on an iOS device, my iOS app will be launched and will prompt the user for credentials. The thing is another mali...
iOS 8 includes encryption that is enabled by default, whereas in Android it is optional. Do both operating systems decrypt everything on boot and then the PIN is used to unlock it until it is turned off? Turning off wipes the decrypted files from volatile memory. Then when the user boots their PIN decrypts them all aga...
It doesn't happen often that a root name server changes, but when it does sometimes it takes months for OS vendors to provide patches and in the mean time there is a security risk. So: How to get named.cache (or named.root/db.cache from the same directory - the files are identical) in a secure way from http://www.inter...
I would like any seasoned analysts in network security & cryptography to help me confirm the following case. I have a .NET console application to get information from a web service hosted in the Exchange server 2013. Every time I execute the console application, I see in Wireshark that the TLS 1.0 is refused by the Ex...
Cold boot attacks are particularly nasty. On Android, a solution is to use a Nexus device with a locked bootloader to preven flashing a custom recovery. On a PC, your safeguards are even more limited. The attacker that has access to a running laptop can throw it in a freezer, then quickly reboot into BIOS to boot onto ...
I am planning to host a CTF contest in a few months at my local university. While searching for some hints I met this wonderful tool called Root The Box. It basically gives you all you need to host a CTF, including scoreboard, bots, flags and integrates all boxes and databases. Since it is designed for begginers, it sh...
Is a reverse proxy worth it? There are so many unsecured sites using a reverse proxy and I feel like that doesn't protect them. After all if they have an error in their SQL that could be use for injection, right? I feel like too many people rely on reverse proxy without knowing how to program correctly
I just noticed with Instagram, what you can do is: From the logged in Instagram app, change your email address. This will send a verification link to the new email address. Verifiying the email address requires you to log in when you click the link. From any log in screen (desktop browser or smartphone app), you can ...
I have a few self-signed certificates that I use, and I find it tedious comparing the entire hex value of the hash when accepting it in a new location. To be honest I usually just look at the first couple or the last couple digits. If it were in some kind of visual form like gravatars are in, I feel like I would more e...
I am working on a new site, and in order to avoid security hassles, I'm planning to provide Google and Facebook login to my website. Do I still need a SSL certificate or is it not necessary? Moreover, when a user goes through Google or Facebook Oauth, do Google and Facebook take care of credentials and passwords?
I'm looking for a description list for major vulnerabilities such as SQLi, XSS etc. The format should be like this: Short Description: Description: Impact: Solution/How to prevent: References:
I would like to know, before I will install Santoku, what are the differences between Kali Linux and Santoku Linux? I know that Santoku is dedicated to mobile security testing, but Kali has some tools for mobile. I focus on comparing tools for mobile applicatation testing, which system seems to be better?
The software that our company builds just went through a security audit. The auditors flagged our use of MD5 for hashing passwords that users can set if they want a password on their files. Having looked in to it, it seems that I should replace it with PBKDF2. But to remove all MD5 hashing methods from the software thi...
I am working on a project where I am using PHP_SESSION, Somewhere I heard that PHP_SESSION are quite unsafe for passing valuable data so I have to know what are the security flaws, how it can be hacked and how to protect yourself from them, Every Simple, Brief and Usable answer should be appreciated.
I've already asked this question on Stack Overflow, but no one answered, so maybe it's a more appropriate place to discuss it. Please let me know if I'm wrong and having duplicated question on different networks is not acceptable. I'm using ASP.NET MVC 5, Entity Framework 6 and SQL Server 2008 to build my Intranet web ...
Scenario: Server-side script takes URL parameter parameter1 and writes it without encoding into cookie cookie1. Then regular HTML page containing client-side script is returned. Client-side script, when user triggers an action, takes a value stored in cookie cookie1 and inserts it without any processing as HTML content...
I have to build a system that will ultimately print a pass allowing access to a building. The validation of this ticket will be done manually (it can also be automatic but that's not likely at this stage). There is the chance that the person checking does not have access to a computer to validate it. The idea is to pri...