instruction
stringlengths
24
27.2k
Given this formula for CBC encryption from 6.2 The Cipher Block Chaining Mode what is the output length of CBC if plaintext P is of length 0?
Basically Email service that is ran over a network, so it's not owned by any one entity. Everyone can use it and send email to someone else. All messages travel through a web of interconnected users. All messages are encrypted and can only be opened by the user it's meant for. There can be storage boxes which will ju...
One of my emails is on hotmail.com provided by Microsoft. Recently, after few suspicious incidents where my computer was hacked and many other accounts, I changed all my passwords including this email. I started ever since reviewing recent activities feature on daily basis. I could see many failed attempts to login to ...
I work for a head hunting company with offices in Canada and Asia. We migrated our custom built CRM system from our own servers hosted in Japan to an Amazon hosting service meaning that all our data is now held on Amazon servers in the US. Data includes names, dates of birth, contact details, current and previous place...
I don't have passwords for my personal sites. To sign up a user pick their username and enter their email. There is a logout button if the user wishes to log out. To log in you enter your email and click the link that is sent to your email address. Why are we using passwords at all especially if we register a users ema...
The firewall of my company has detected and blocked a repetitive (every 15 min) HTTP request from a PC, which tries to start a download of a file called ..._chrome_installer.exe(or so) from the host: http://r9---sn-4g57kner.gvt1.com Chrome is not installed on that PC. Neither is there any suspicious process, service o...
I am trying to solve this exercise. The objective of this is to "Post the Username and Password to Attacker Controlled Server". There is a url parameter that the server takes, and it gets reflected back onto the page. Which is what we need to use as the XSS vector. Now, I have written a script like this: <script type=...
I have a REST API running in a Tomcat container that has an endpoint that takes a customer email address as a query parameter. It's something like this: /customers?email=foo@bar.com Customer email addresses are an asset we want to protect, so we need to ensure they aren't logged any where, and cannot be intercepted. T...
Is there an order to respect in subjectName field when creating a x509 certificate with OpenSSL command? In other words, what are all possibilities of displaying subjectName of x509 certificate in OpenSSL?
I've realized that the following implementation isn't truly safe: $pb = pbkdf2('sha256', $_POST['pass'], "enc_salt", 100, 100); $d = openssl_decrypt ($data['container'],'aes-192-cbc', $pb, true, $data['iv']); In fact, I should use a unique salt for $pb instead of "enc_salt", shouldn't I? Furthermore, can I simply use ...
In which ways can my ISP, who by the way controls the WiFi router I connect to, do a MITM attack on my TOR connections and hence read the traffic?
This is just an academic question, I do not intend to write my own crypto software. Every time someone asks the question “How do I write my own Crypto?” the answer is don't. I'm currently studying computer science, and there is no course offered by the university which seems to be helpful. There are some courses offe...
the scenario is in a corporate environment and not connected to internet. The other day I was arguing with my colleague on whether email is good enough to be the second factor in a 2FA system. My administrators will log in to the system via our corporate network, and then an OTP will be sent to his email which he will ...
I am new to information security field. I am searching for XSS vulnerabilities. In XSS mostly they use <script>alert('XSS')</script> payload for attacking a websites. In the case of bypassing the XSS filters, they might encode the payload and use the UpperCases <SCriPT>. In a recent search, I have found a different pay...
I'm trying to plan security routine for my new Linux install and few questions came up during searching for solution which meet my needs. Is it possible to use private key from TPM in GRUB to decrypt /boot partition located on external storage? Is it possible to use GRUB to decrypt partition located on external storag...
So I am slightly more than a dilettante when it comes to security but hardly an expert. I have been reading up on the recent Adobe Flash issues and I wanted to ask a couple of questions: My Mom uses Mozilla on her computer and they have all but completely disavowed Flash. Flash is still used on most ticket buying sit...
Every time that someone mentions eval(), everyone says that there are "security issues" with it, but nobody ever goes into detail about what they are. Most modern browsers seem to be able to debug eval() just as well as normal code, and people's claims of a performance decrease are dubious/browser dependent. So, what a...
Does anyone know any other way to determine who is logging into a system, tracking if worker is on the clock and physically there working? Time tracking is awful in the hourly service world, because a user can always have another user log in and out for them with a shared badges, a shared password, and generally only a...
I am taking my Macbook into an Authorized Service Provider to run diagnostics on battery performance and my data is encrypted using FileVault 2. I am assuming the technician(s) will want the ability to login. If I create a user account for them that will be enabled to decrypt the drive, how easy is it at that point to...
I'm just wondering I'm not a criminal but a friend is also wondering and Idk.
I was recently checking my Recent Activity under the "Details" tab inside my Gmail inbox, and I noticed this IP Address, it's not my IP: I proceeded to look up the IP and it's located in Mountain View California, can someone explain to me what is going on here? What is going on here, specifically, and how could someo...
Serial numbers need to be unique for X.509 certs. But do they need to be strictly sequential or is making them equal to the time that the cert was generated sufficient?
I was wondering if there is such thing as an OS "internal firewall". If it exists, it must be under a different name. I am looking for a way to control which applications can talk to which other applications inside of a single computer. I am not only asking about TCP/IP sockets, but also UNIX-domain sockets, pipes, and...
let there be two clients and a server; the clients have a shared secret and unique IDs. their communication to the server is encrypted over SSL. the problem now is sending secure instructions from one client to the other over the server using socket connections and routing instructions to the right client as well as en...
In our production environment, we are connecting to a few core external service providers though their APIs, and are required to have all other services blocked (PCI DSS). We currently have a firewall which supports egress filtering by ip address so all non-essential addresses are blocked based on statically-created fi...
I am very confused about exactly what http_uri does. Can someone explain this to me w.r.t NORMALIZED and UNNORMALIZED uri fields?
As you can see from the tag, I know that security by obscurity is not true security. So consider a server available to the Internet on port 443 (SSL) of a fixed IP address in the dialup range of a telecommunications provider only. When https'ed, it shows an IIS 8 welcome page. The server can be reached via IP address o...
I want to ask if there are any security risks for the login authentication and change password on the same page? Normally the user needs to authenticate first in order to see the password change form. I have seen the login authentication and password change on the same form with 4 fields (User ID, Password, New Passwor...
Microsoft has stopped offering the Windows images for download. It is now only possible to get the image if one has a key of a retail version of the corresponding OS. The question is now, whether the images that fly around the internet, are safe to use. It is enough to compare the SHA1 of the .iso-files with the one pr...
I just ordered a cheap Comodo PositiveSSL Certificate via a UK reseller, and I was rather surprised to find that the following files were emailed to me automatically, in a zip file: Root CA Certificate - AddTrustExternalCARoot.crt Intermediate CA Certificate - COMODORSAAddTrustCA.crt Intermediate CA Certificate - COMO...
I have heard from different people and in different places that if I send an encrypted file to someone else, I should send them the password in a separate email; but why? If someone is sniffing, they will capture both and if the inbox is compromised, they will capture both. But apparently, it's "best practice" to send ...
I've been thinking of a problem with usual password managers: although they do provide better security than manually using passwords, there's a central database that can get lost, get compromised, etc. For example, malware could use a keylogger to get your master password and then compromise all the passwords in the pa...
I was just thinking (through browsing the site) How possible is it to encrypt data, then encrypt it a 2nd time and then after encrypting it with a 2nd layer, remove the first layer leaving the second layer untouched. file -> encrypted layer 1 -> encrypted layer 1 and layer 2 -> encrypted layer 2 -> file. technically po...
Suppose I have a client that generates and sends a Shamir key (or group signature) to a set of Auditors. This key is essentially an unverified set of bytes. Each auditor wants to somehow verify that the keys are valid, and can be combined. What technique can be used to ensure that valid (and not garbage) key material...
I have a system where tens of thousands of users log in whenever they like and my server has to assign them to one of many databases. I would like to distribute the users evenly amongst the databases. I was thinking of using one of two methods, and cannot decide which will give me a more even distribution: RAND_bytes ...
I know this might seems general question to be googled first and I have tried. I have successfully de-authenticated the client or clients multiple times but I didn't get the message of WPA handshake but in it's place (top right corner) is written: fixed channel mon0:-1. Also I should mention I followed procedure as giv...
An official nation-state institution, like the Swedish Skatteverk, could easily let their citizens verify themselves online. O-auth tokens could be created by the nation-state institution, generated server-side, and these tokens could be used to verify legal identity within the app-space. What kind of APIs do nation-st...
The diagram below illustrates chaining digital certificates up to a publicly trusted Root Certificate: (source: globalsign.com) I have been researching how trusted root authorities (such as GlobalSign or Verisign) are used to authenticate someone's public keys to identify that person as a trusted publisher. I think I ...
I have several fields in a database table I would like to encrypt, but I would like to do it in a way that would allow me to easily change the encryption key every n months for security reasons. My initial thought was to store the IV with the row so I could use that to decrypt each entry where the key for the encryptio...
I have been looking into SDN (Software Defined Networking) and one advantage of using this is to be able to redirect traffic to stop DDoS attacks. The traffic is ultimately thrown away. My question is if a network is using SDN couldn't an attacker just as easily attack the controller itself? Rather than flooding rou...
Presumably, if someone tries to brute force into your website's control panel at your web host's site - they will be throttled/locked-out etc. But what about the web publishing logins (Web-Deploy, FTP, ...)? How do we prevent anyone brute forcing those? Is the only way to have a password that cannot practically be brut...
I am using OpenVas to scan several different networks and aggregate those reports into RSA Archer. Archer supports breaking hardware up into different Business Units/Divisions etc., and I would like to preserve that information. If I know which, say, Business Unit, I'm scanning, is there a way to include that informat...
Is it necessary to use any DDoS service provided by different web hosting provider and other people? We know, they are running their business to provide security to thousands of web property. They are earning plenty of money from this B2B service. Some are good at what they say and what they provide, like CloudC.me, C...
Assume the following Public Key Infrastructure: |Root CA (RSA) |-Sub CA (RSA) |-Sub CA (ECC) Is there any rational that explains why this would not be an acceptable implementation? Is the prefered implementation a PKI for RSA and a seperate PKI for ECC?
Assuming these very basic kinds of attacks: Header based Protocol based Authentication based Traffic based What would using a VLAN mitigate? Several people seem to be overthinking the question. The attacks mentioned above are the 4 attack types in the network security attack taxonomy. I realize they are generic, but ...
I was wondering if someone could sniff the packets I send via my computer with something like Wireshark I guess even if I use TOR and the person could access the router like stated.
After creating an OpenPGP key pair in GnuPG, if I list keys with gpg --list-keys, I get (GnuPG default): /someone/.gnupg/pubring.gpg ------------------------ pub 2048R/BC589B05 2015-07-15 uid Some One sub 2048R/3dd81C42 2015-07-15 Consisting the primary public key with ID BC589B05, and sub key wit...
I'm trying to Brute force the http Basic authentication on the domain pentesteracademylab.appspot.com The complete path is pentesteracademylab.appspot.com/lab/webapp/basicauth I'm using the module under the path in msf as auxiliary/scanner/http/http_login Have set AUTH_URI as /lab/webapp/basicauth VHOST and RHOS...
Recently I heard the term called application level antivirus. I just wanted to know is there anything like that. I heard a company provides such kind of antivirus(I dont want to post company name) I didnt get any reference as such in google. except link to the same company. Suggestions/inputs please.
I'm implementing a custom IAuthorizationServerHost using DotNetOpenAuth library. Example implementation uses two certificates for CreateAccessToken (see Listing 6): public AccessTokenResult CreateAccessToken( IAccessTokenRequest accessTokenRequestMessage) { var token = new AuthorizationServerAccessToke...
I am going to build a PIN lock on Phonegap, trying to understand the security layer. As Phonegap is just a webview, it can be easily altered, if you are connected to a device. I believe that you can also decompile the Java as simple as the HTML5 from Phonegap. So would it makes a difference if I put a screen lock on th...
In case of WPA2 using the Radius server, every client gets its own username and password. But what is the case in the WPA2 using a PSK without the authenticating server. In this case also we have a 4 way handshake. But is the PTK derived by all clients different or the same?
I am new to the topic and wanted to know the concept of having salted hashes before going down to the technical details. From what I have understand password - plaintext hash password - plaintext password being encrypted by a hashing algorithm that is irreversible (one way) salted hash password - random text + plain ...
I have to install 2 certificates on a computer and I am a little puzzled by the certificates. The first certificate has these details: Issuer: CN = AddTrust External CA Root OU = AddTrust External TTP Network O = AddTrust AB C = SE Subject: CN = AddTrust External CA Root OU = AddTrust External TTP Network O = AddTrust...
I want to 'manually' verify a certificate and the first step in doing so, I accessed paypal.com and obtained the following RSA modulus and signature value. modulus = 'c0f8ac40a691bbee111561e7e13e5051e7a84341f953a2974dd5e911f8ef7420e10094230c0e2ac07c39d78cc1720ad5215fdcdb6c94b2bf9106705867fadd94289918f4f491561a97db6c5c9...
I am trying to design a system that will allow for staff members in our small company to securely share sensitive customer information (text) and see them on a web page alongside less sensitive communications. I intend to use PHP because that's what I know best. The main challenge is that the data needs to be stored on...
In the company where I work (webhosting) our custoumers can choose the PHP version they want to use for their website. However, I have just realized that all of the offered PHP versions are outdated (ie. PHP 5.4.38, 5.5.22 and 5.6.6 being offered to our clients - current versions are 5.4.43, 5.5.27 and 5.6.11). How d...
I can't see what the advantages might be, but I think this would slow data transfer down while providing no extra protection. Am I right or am I overlooking something?
Most modern browsers will detect xss attempts (script code in the URL) and prevent execution. Are there any known standard ways around this or are xss attacks pretty much impossible now?
Yesterday I have noticed MSWindows product code on KFC's machines is exposed to the public (photo below). It might be a mistake but it made me think of something a friend of mine told me once, how he used to go to Internet cafes and copy the product key either from the back of the machine or use a software to retrieve ...
I'm writing an app around a REST API which does not allow the server to invalidate a session - i.e. there's no endpoint like logout which will make the cookie my app is using be invalid from now on. So I see that if a hacker intercepts that cookie, then a user logs out (which means for me - remove the cookie) and then ...
Let's say that you are about to change your log in system and you have a few millions of users that you want to switch to the new system. Specification Old System Username : email address Password Policy : None Email Verification : None Password Hashing : None Specification New System Username : email address Passwo...
I'm currently using Hawk as the auth scheme for an API. Basically, the current flow (forced SSL) involves: User types in email/passwd on app App performs 1000 rounds of PBKDF2 using the email as salt, sends the result along with the email for registration Server hashes the password using scrypt (64k/8/1) and a random ...
I am soon to start my compulsory military service. I applied to the Cyber Warfare Unit of Finnish army. There was a test for applicants. Since the test is done the questions have now been published here: http://erityistehtavat.puolustusvoimat.fi/cyberchallenge.html Here is question 4: Two completely isolated programs ...
I am studying CompTIA Security+ material and am struggling to understand the link(s) between a subnet mask, an IPv4 address and a subnet ID. The question that I'm working on is as follows: Your network uses the subnet mask 255.255.255.224. Which of the following IPv4 addresses are able to communicate with each other?...
There are the basic things that need to be explained to every employee about a security policy. For example: How sensitive information must be handled. How to properly maintain your ID, and password, as well as any other accounting data. How to respond to a potential security incident, intrusion attempt, etc. How to u...
I am wondering if postgres LDAP login is secure? Would passwords be transmitted in clear text potentially if this is not set up properly?
I understand that one should not use the same password everywhere, as stated here for instance. Using the same password on several non-valuable sites may be considered acceptable: we simply do not care if they get compromised. My question is about sites that I consider (wrongly?) as "very secure". I think it is very un...
I need to monitor the websites being visited on my wifi network by the different IPs connected to the network. What is the best way to do this? I spent some time with Wireshark but I feel it is a bit overkill for doing this. Is there a cleaner/more efficient way to do this?
I understand the "public" part of public key cryptography. Not the "private" part. For example, let's say our public key is %7 (modulo 7). And the message to be encrypted is 22. And we know that 22 % 7 = 1 Here, 1 is the encrypted message. The reason why public keys work is that despite knowing the public key (%7) and ...
I want to monitor the websites that are being visited on my wifi network by the different IPs connected to the network. Is there a way to do this, other than Wireshark?
I am really confused about the country, state and city I should select when submitting an SSL certificate. Should I provide the location of my servers or my current home address?I can always reissue a certificate, but can this somehow cause problems in future? This may sound as a trivial question but I couldn't find an...
I am starting the early stages of researching the possibility of getting FIPS 140-2 certified, but I have run into some confusion. To start, our software is written in Java and does not actually do any of the encryption/decryption, currently that is done by BouncyCastle libraries and the hope is that when BouncyCastle ...
I'm starting with sqlmap and I have the following problem: When I try to use sqlmap (trying to bypass waf) using this snippet: sqlmap.py -u "http://prefing.umsa.edu.bo/index.php?option=com_newsfeeds&view=newsfeed&id=1&feedid=1&Itemid=18" --dbs --dbms=mysql --time-sec=10 --hex --level=5 --risk=3 --tamper=apostrophemask,...
The new "Firefox Hello" feature promises easy and safe video conversation. It is not nescessary to create an account, you simply share a link with your partner to start the conversation. The communication is promised to be "private and secure" on this site, but it doesn't actually go in-depth about the techniques that ...
Is this a Secure strategy for sending a large Encrypted Message using Hybrid RSA 2048, AES 256 and authenticated with HMAC SHA-256: Given the Alice already has Bob's RSA Public Key, Alice: Generates a new 128bit IV (strong PRNG) Generates a new AES 256bit/CBC/PKCS7 Crypt Key (Kc) Generates a new AES 256bit/CBC/PKCS7 A...
How does just putting a site link in an iframe (and when opens in iframe) indicate that the site is vulnerable to a click jacking attack? I have also read that if the site is a forum base, then the vulnerability could be critical. Why? please provide some examples if possible.
How much effective strength is the following adding to a basic 512 bit XOR cipher? Private Key = Key0 consists of 512 randomly generated bits. This key is never used to encrypt or decrypt anything. Plain Text Message needs to be encrypted. Generate unique random 16 byte salt for this particular message. Salt Key0 an...
Are things like large memory requirements and constantly mutable state typically added to encryption alogrithms to hinder the ability of attackers to try multiple candidate keys simultaneously? Also, is an encryption algorithm being less parallelizable often touted as an advantage of that algorithm?
Asking this because apparently there are multiple people who genuinely don't realize just how bad of an idea this is, and I want there to be a single, easy-to-find place for them to go / be sent.
I use this Javascript Code, and it works perfectly: if (top.location != location) top.location.href = location.href Many researchers told me to not use this. Can any one bypass it? Are there any risks in using this,if yes what? One of them told me that an attacker can redefine location variable: var location = 'foo'...
I'm watching all this movement around Metasploit project, the great number of different exploitation plugins, and thousands of exploit packs. Now, it is real truth, anyone could configure his own black-hole in the network. Moreover, any admin of any services in the network could attack me just for fun, while I'm readin...
I have to write alerts in SIEM Tool. Do we have any events code for Unix as we have in Windows. If yes, where can I find that? If not, on what basis can we write alerts for unix flavours or machines? It would be needed for auditing, application or network based alerts.
Everyone says that home brew encryption is not a good idea because one day the algorithm will be known to attacker which sounds reasonable. So that seems it's main problem, on the other hand known algorithms are known to everyone and are most-likely safe to use. Would it make sense to some paranoid developer to create ...
As I'm currently playing around with cryptography, especially OTR, I'm wondering about its security against active MitM attacks. Let's say Alice and Bob created an OTR session, but Eve is acting as a MitM, changing messages, so that she can decrypt Bobs messages to Alice, reads them(may even change something), encrypt...
My goal is to see the SSIDs requested by mobile devices in my home. For example, my Windows phone knows about SSIDs called "coffee_shop", "planet_fitness" and "library". I have my phone set to "connect automatically" to those known networks. I understand from this article that that I should be able to capture the SSI...
How does using SSL protect aginst dns spoof? since DNS is at a lower level and it is always work the same whether the user is visiting an HTTP or HTTPS site.
I have asked a question regarding the benefits (if any) of the following scheme: AES(HomeBrew(plaintext)). There are many good answers for that, but many people say that it's theoretically possible that your algorithm will reduce security of the whole scheme, so it will be possible to break it without breaking AES itse...
Is there a way to trace back who was using a public dynamic IP address previously? Would it be possible to find out the MAC address of the host using the IP address at a given time? (e.g., can you interrogate gateways to find this historical data?) Or is it as good as gone once the IP address has been reassigned?
Here is the simplest example to show my problem. Everything is in WinXp sp3 with DEP disabled. char f() { // shellcode starting with some NOPs, char shellcode[400]= { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x66, ... s...
Does SSL/TLS contain any form of identification in the initial handshake, so an attacker cannot simply waive the certificate around claiming they are someone else? Wikipedia did not say that it did, but I was wondering if the public key on the server cert is sometimes used for this. Or is this assumed since the the att...
I've noticed that one of my web-sites shows up pretty much blank when viewed from Google Cache at webcache.googleusercontent.com, because Google apparently must be inserting the following extra header, which, apparently, makes SeaMonkey not display whichever content is supplied through an iframe (which I'm using as the...
Which attacks can a rogue hosting company carry against the servers it hosts? Assume that the rogue hosting company also provides full access to law enforcement. I was just wondering about that. So much effort people go though to secure their servers and all NSA needs to do is to force the hosting company to provide di...
If a file is downloaded from the Internet, and saved on disk, but is not opened by a user (if we keep autorun off), are there any chances that malicious code (e.g. a virus) in the file could trigger? I'm not asking about attacks that could be made while downloading, or on browsing to a site - imagine the file has someh...
I have created the following encryption process which I will be using to store CD keys inside my database. Before I use it, however, I need to make sure that this is as secure as possible. From what I see, there are two primary concerns: The storage of the private key must be extremely secure. If someone gets a hold o...
How can one enforce authorization/authentication for micro service apps? And also, how to achieve SSO (single sign-on) from an end user's perspective? E.g: Assume a shopping site which has many micro services. Once a user is authenticated in one micro service app, then that user should be able to access other microserv...
I want to immediately reset (as it resets when I push reset button on computer case) or immediately turn off PC (as if unplugged from power grid) but with some method inside Windows. Maybe I can kill any Windows process or or make something inside Windows that it immediately resets or turns off? Any software solutions ...
Some people use software like whoisonmywifi and so on. Is there a way to bypass this software? I think it pings all IP addresses like 192.168.1.0/24 so it will ping all addresses. Can I disable the ability to be pinged? Can I bypass this software?
There are already several posts here discussing the specificities of magnetic hard disks and SSD and how to properly wipe their content: With magnetic disk a complete overwrite of the disk content is the way to go, even like several over-writing following some defined patterns (a character, its complement, then random...
If I go to http://sppp.rajasthan.gov.in/robots.txt I get: User-Agent: * Disallow: Allow: / That means that crawlers are allowed to fully access the website and index everything. If so then why site:sppp.rajasthan.gov. in on Google Search shows me only few pages whereas it contains lots of documents including PDF fil...