Docsity

Useful for Website security purpose, Lecture notes of Security Analysis

Partial preview of the text

Download Useful for Website security purpose and more Lecture notes Security Analysis in PDF only on Docsity!

Web Engineering

Lecture 15 Security of Web Application Fatima Bashir Lecturer Computer Science Department

What Is Web Application Security?

▷ Web application security is the process of

protecting websites and online services against different security threats that exploit vulnerabilities in an application’s code. Common targets for web application attacks are content management systems (e.g., WordPress), database administration tools

(e.g., phpMyAdmin) and SaaS applications.

Confidentiality

▷ Confidential communication means that data

exchanged between a customer and a provider cannot be read by a third party.

▷ Encryption is the technological foundation of

confidential message exchange over insecure communication channels.

▷ Common approaches are, for example, the use

of private channels or a virtual private network (VPN).

Non-repudiation

▷ Nonrepudiation is the assurance that someone

cannot deny something. Typically, nonrepudiation refers to the ability to ensure that a party to a contract or a communication cannot deny the authenticity of their signature on a document or the sending of a message that they originated.

Authentication

▷ Authentication is the process of verifying the

identity of a person or general subject (which could also be another application invoking a service on behalf of a human user). Authentication often takes place through a login/password mechanism

Availability

▷ Guaranteeing the availability of Web applications

is of economic relevance, as service downtime typically implies financial losses.

Privacy

▷ Privacy demands the reliable handling of data,

like personal information, e.g., contact data or credit card numbers, but also files stored on the local file system.

▷ Such data must not be accessible to

unauthorized third parties which might misuse it

for identity theft.

Symmetric Cryptography

▷ Using symmetric encryption, the receiver of a

message uses the same key to compute the plain text from the cipher text as the sender used to encrypt it.

Symmetric Cryptography 14 Only these two parties (sender and recipient) can read and access the data. This is why it’s also sometimes called secret key encryption, secret key cryptography, private key cryptography, symmetric cryptography and symmetric key encryption

Asymmetric Cryptography

▷ Asymmetric Cryptography is also known as public

key cryptography. It uses public and private keys to encrypt and decrypt data. One key in the pair which can be shared with everyone is called the public key. The other key in the pair which is kept secret and is only known by the owner is called the private key. Either of the keys can be used to encrypt a message; the opposite key from the one used to encrypt the message is used for decryption. 16

Asymmetric Cryptography

▷ Public key – Key which is known to everyone.

Ex-public key of A is 7, this information is known to everyone. Private key – Key which is only known to the person who's private key it is. 17

Ceaser Cipher 19

Decryption Decryption=(C-k) Mod 26 Key = Cipher Text= wehdwb lpsrvvleoh w= =(22-3) mod 26 =19 / 19 / 26 =0.73 => 19-0 * 26 = 19 19 = t U= =(20-3) mod 26 =17 / 17/26 =0.65 => 17- 0* 26= 17=r 20