86% found this document useful (7 votes)
4K views13 pages

Demoblaze Vulnerability Assessment Report

The document reports several vulnerabilities found on the website https://www.demoblaze.com, including business logic vulnerabilities, weak passwords, username enumeration, CORS issues, and prototype pollution. Specifically, it was found that user accounts could be created without proper validation (business logic), passwords did not have to meet complexity requirements (weak passwords), valid usernames could be identified (username enumeration), CORS requests allowed credentials from untrusted domains, and the prototype of objects could be modified (prototype pollution). All of these issues pose security risks like account takeover, data theft, and other unauthorized access. Mitigations like password strength policies, account lockouts, CORS configuration, and vulnerability testing are recommended.

Uploaded by

Sam Choudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
86% found this document useful (7 votes)
4K views13 pages

Demoblaze Vulnerability Assessment Report

The document reports several vulnerabilities found on the website https://www.demoblaze.com, including business logic vulnerabilities, weak passwords, username enumeration, CORS issues, and prototype pollution. Specifically, it was found that user accounts could be created without proper validation (business logic), passwords did not have to meet complexity requirements (weak passwords), valid usernames could be identified (username enumeration), CORS requests allowed credentials from untrusted domains, and the prototype of objects could be modified (prototype pollution). All of these issues pose security risks like account takeover, data theft, and other unauthorized access. Mitigations like password strength policies, account lockouts, CORS configuration, and vulnerability testing are recommended.

Uploaded by

Sam Choudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Vulnerability Analysis
  • User Name Enumeration
  • CORS Vulnerability
  • Prototype Pollution Vulnerability

Hi !

I found a lot of vulnerabilities on your website


:-[Link]

1.1 :- VULNERBILITY NAME :- BUSINESS LOGIC

 VULNERBILITY DESCRIPTION :- Business logic


vulnerabilities refer to security flaws that arise due to
improper or incorrect implementation of business logic in
an application. These vulnerabilities are not related to
technical flaws in the code or infrastructure, but rather to
the application's behaviour in response to certain user
input or business rules.

 SEVERITY :- MEDIUM

 STEP TO REPROCUDE :-
 Go to [Link]
 Click on Sign up.
 User create without proper validation.

 IMPACT :- This could lead to pre account take over.

1.2 :- WEAK PASSWORDS :- Weak passwords are a significant


vulnerability in the security of computer systems, networks,
and online accounts. A weak password is one that is easy
to guess or crack, and it provides little or no protection
against unauthorized access.
Attackers can use various techniques to crack weak
passwords, such as dictionary attacks, brute-force attacks,
and social engineering. Dictionary attacks involve using a
pre-compiled list of common passwords and attempting each
one until the correct password is found. Brute-force attacks
involve trying all possible combinations of characters until
the correct password is discovered. Social engineering
involves tricking the user into revealing their password
through phishing, pretexting, or other deceptive tactics

 SEVERITY :- MEDIUM

 STEP TO REPROCUDE :-
 Go to [Link]
 Click on Sign up
 Fill user name
 Fill password in any format long or short both are
acceptable.
 Login
 POC :-

( Before Login )
(After Login )

 IMPACT :- Guesses any one your password and also


perform brute-force attack by any one.

 MITIGATION :-

 Websites can enforce password complexity


requirements, such as requiring passwords to be a
minimum length, contain a mix of uppercase and
lowercase letters, and include numbers and special
characters. This can help prevent users from choosing
weak passwords that are easily guessed.
 Password Strength Indicators: Websites can provide
password strength indicators to help users create
stronger passwords. These indicators can display a
rating of the password's strength based on factors such
as length, complexity, and uniqueness.
 Two-Factor Authentication (2FA): Two-factor
authentication can provide an additional layer of
security by requiring users to provide a second factor of
authentication, such as a code sent to their phone or
email, in addition to their password.
 Account Lockout: Websites can implement account
lockout policies that temporarily lock user accounts
after a certain number of failed login attempts. This can
help prevent brute-force attacks that attempt to guess
passwords.
 Password Expiration and Reset: Websites can enforce
password expiration and require users to reset their
passwords periodically. This can help ensure that users
regularly change their passwords and prevent the use of
compromised passwords.
 Password Storage and Encryption: Websites should
store user passwords securely, using strong encryption
and proper key management. Passwords should never
be stored in plain text, and website owners should
follow industry best practices for password storage and
encryption.

1.3 USER NAME ENUMERATION :- Username enumeration is


a vulnerability that occurs when an attacker can determine
valid usernames for a system or service. Attackers can use
username enumeration to gather information about
potential targets and launch further attacks, such as
password guessing or phishing.

 SEVERITY :- MEDIUM
 STEP TO REPROCUDE :-
 Go to [Link]
 Click on login
 Type any random username
 Fill any wrong password
 It only saw Wrong password that’s means your
user name is correct

 POC :-

 IMPACT :-

 Increased Risk of Brute-Force Attacks: Once an attacker


has a list of valid usernames, they can use that
information to launch brute-force attacks to guess the
password associated with each account. Brute-force
attacks can be automated, and when successful, they can
allow an attacker to gain unauthorized access to
systems, applications, or data.
 Account Lockout: In some cases, a system may lock out
an account after a certain number of failed login
attempts. Username enumeration can lead to account
lockouts if an attacker attempts to log in to a large
number of accounts using a list of valid usernames. This
can cause significant inconvenience for legitimate users
who are unable to access their accounts.
 Phishing and Social Engineering: Attackers can use the
information gathered from username enumeration to
craft convincing phishing emails or other social
engineering attacks. For example, they can send an
email that appears to come from a legitimate source and
use the username to make the email more convincing.
This can lead to the user disclosing sensitive
information or clicking on a malicious link.
 Data Breach: If an attacker gains access to a system or
application through a successful brute-force attack, they
may be able to access sensitive data, such as customer
data, financial information, or intellectual property.
This can result in a significant data breach that can
damage the reputation of the organization and result in
financial losses.
 No limitation on passwords when you fill wrong
passwords

 MITIGATION :- To mitigate the risk of username


enumeration, organizations should implement security
controls such as account lockout policies, multi-factor
authentication, and monitoring of login attempts. They
should also educate their users about the risks of social
engineering and phishing attacks and encourage them
to use strong, unique passwords. Regular vulnerability
assessments and penetration testing can also help
identify and address vulnerabilities, including
username enumeration.

2 :- VULNERBILITY NAME :- CORS(Cross-origin resource


sharing)

 VULNERBILITY DESCRIPTION :- The impact of a CORS


vulnerability depends on the severity of the
vulnerability and the resources accessible to an
attacker. However, potential consequences can include
data theft, data manipulation, privilege escalation, and
unauthorized access to sensitive information.

 SEVERITY :- MEDIUM

 STEP TO REPROCUDE :-
 Go to [Link]
 Login
 Using proxy tool like Burp-suite for capturing
request
 I saw Allow-Credentials are true
 Then I change origin [Link] to [Link]

 POC :-
 IMPACT :-

 Information Disclosure: An attacker can use a CORS


vulnerability to access sensitive information from a web
application. This information may include
authentication tokens, session cookies, and other
sensitive data that can be used to launch further attacks.
 Unauthorized Data Modification: A CORS vulnerability
can also allow an attacker to modify data in a web
application, which can result in unauthorized changes to
user accounts, transactions, and other data stored in the
application.
 Cross-Site Scripting (XSS) Attacks: Attackers can also
use a CORS vulnerability to launch XSS attacks on a web
application. This can be done by injecting malicious
scripts that can execute in the context of the target
website and steal user data, modify content, or perform
other malicious activities.
 Account Takeover: If an attacker is able to steal
authentication tokens or session cookies, they can use
them to gain access to user accounts and perform
actions on behalf of the legitimate user. This can lead to
data theft, financial fraud, and other malicious activities.
 Reputation Damage: If a website or application is
compromised due to a CORS vulnerability, it can damage
the reputation of the organization and erode user trust.
This can result in financial losses and a loss of business.

 MITIGATION :- To mitigate the risks associated with


CORS vulnerabilities, it is essential to properly configure
and implement CORS on the web server. The server
should only allow cross-origin requests from trusted
domains, and the response headers should be
configured to restrict the types of requests that are
allowed. Additionally, web developers should always
consider the security implications of third-party APIs
and libraries that they integrate into their applications.
Regular vulnerability assessments and penetration
testing can also help identify and address CORS-related
issues.

3 :- VULNERBILITY NAME :- PROTO-TYPE POLLUTION

VULNERBILITY DESCRIPTION :- Prototype Pollution is a type of


vulnerability that can occur in JavaScript applications. It happens
when an attacker is able to modify the prototype of an object,
which can result in unexpected behavior or even a security breach.
In JavaScript, objects are created using prototypes, which define
the properties and methods of the object. An attacker can exploit a
vulnerability in an application that allows them to modify the
prototype of an object, leading to unexpected behavior or even a
security breach and it’s CVE number – 2019-11358

 SEVERITY :- MEDIUM

 STEP TO REPROCUDE :-
 Go to Go to
[Link]
 Login
 Use DOM invader extension and you can also try
manually
 Then you show pop-up notice

 POC :-

- Pop-up Image
- Pop-up Image

 IMPACT :-

 Unauthorized Access to Data: An attacker can use a


Prototype Pollution vulnerability to modify the
properties and methods of an object, potentially
leading to unauthorized access to sensitive data.
For example, an attacker can add a new property to
an object that contains sensitive data, allowing
them to steal that data.
 Remote Code Execution: In some cases, an attacker
can use a Prototype Pollution vulnerability to
execute arbitrary code on the target system. This
can be done by modifying the prototype of a built-
in object, such as the Object or Array objects, and
then using that object to execute code.
 Application Crashes: Prototype Pollution can also
lead to application crashes and instability. For
example, an attacker can modify the prototype of
an object in a way that causes the application to
crash when it tries to access that object.
 Data Corruption: If an attacker modifies the
prototype of an object that is used to store data,
they can potentially corrupt that data or cause it to
be processed incorrectly.
 Reputation Damage: If a JavaScript application is
compromised due to a Prototype Pollution
vulnerability, it can damage the reputation of the
organization and erode user trust. This can result
in financial losses and a loss of business.

 MITIGATION :- To mitigate the risks associated with


Prototype Pollution vulnerabilities, it is essential to
follow secure coding practices and implement proper
input validation and sanitization in the application.
Libraries and frameworks used in the application
should also be kept up-to-date to ensure that any known
vulnerabilities are addressed. Additionally, regular
security assessments and penetration testing can help
identify and address potential vulnerabilities, including
Prototype Pollution.

Common questions

Powered by AI

Username enumeration occurs when an attacker can determine valid usernames for a system by analyzing feedback from login interfaces, which may indicate when a correct username but wrong password is supplied . This vulnerability is concerning because it can facilitate brute-force attacks, allowing attackers to guess passwords for known usernames, leading to unauthorized access . Additionally, it may enable phishing attacks where attackers craft targeted and convincing emails aimed at these valid users . Mitigating this involves consistent error messages regardless of whether the username or password is incorrect, alongside other security measures like account lockout policies and multi-factor authentication .

Prototype pollution is a vulnerability in JavaScript applications that allows an attacker to modify an object's prototype. This modification can lead to unexpected application behavior or even security breaches . Potential impacts include unauthorized access to sensitive data by adding properties to objects, remote code execution by altering built-in object prototypes, application crashes, and data corruption . Such vulnerabilities can cause significant damage, including data theft and financial losses . To mitigate these risks, developers should enforce secure coding practices, including proper input validation and sanitization. Keeping libraries up-to-date and conducting regular security assessments can help in identifying and fixing such vulnerabilities .

A CORS (Cross-Origin Resource Sharing) vulnerability can lead to unauthorized access to sensitive information, data theft, data manipulation, privilege escalation, and cross-site scripting (XSS) attacks . This occurs when the CORS configuration is improperly set, allowing malicious domains to access or alter sensitive data . To mitigate these vulnerabilities, web servers should be configured to allow cross-origin requests only from trusted domains. Proper response headers should restrict the types of requests allowed . Developers should be cautious about third-party APIs and regularly conduct vulnerability assessments to identify and address CORS-related issues .

Prototype pollution can lead to application crashes as it involves unauthorized changes to object prototypes, which can introduce unexpected behaviors or error conditions when these objects are accessed . This can disrupt the normal execution flow or cause the application to become unstable and crash . Mitigation strategies include employing secure coding practices such as input validation and ensuring that all dependencies, libraries, and frameworks are regularly updated to address known vulnerabilities . Developers should also consider using tools and techniques to detect and remediate prototype pollution vulnerabilities during the development and testing phases of the application lifecycle.

To reproduce a CORS vulnerability exploit, one could follow these steps: login to the target website, intercept a request such as by using a proxy tool like Burp Suite, observe the 'Access-Control-Allow-Credentials' header is set to true, and then attempt to change the origin request header to that of a malicious site like 'Evil.com' . Indicators of such an exploit can include the server responding positively to the malicious origin, thereby revealing a CORS configuration issue . Identifying such vulnerabilities typically results in demonstrating unauthorized data access or manipulation, which signal the security flaw.

Incorrect password storage, such as storing passwords in plain text, poses a severe security risk as it can lead to easy data theft if an attacker gains access to the storage medium . To secure password data effectively, organizations should use strong encryption techniques and proper key management for password storage . This includes hashing passwords with a strong algorithm (such as bcrypt) and using salted hashes to prevent dictionary and rainbow table attacks. Organizations should follow industry best practices for password storage and regularly audit their security measures to prevent unauthorized access .

Social engineering techniques exploit username enumeration vulnerabilities by utilizing the collection of valid usernames to craft targeted phishing attacks . These can take the form of emails pretending to originate from trusted sources, convincing users to reveal sensitive information or carry out harmful actions like clicking malicious links . Countermeasures include implementing generic error messages that do not reveal the validity of a username, educating users on how to recognize phishing attempts, and employing multi-factor authentication to enhance security . Regular security training and simulations can also help reduce the risk of falling prey to social engineering attacks.

Weak passwords are susceptible to attacks such as dictionary and brute-force attacks, where attackers use pre-compiled lists or attempt all character combinations to guess passwords . These weak passwords can lead to unauthorized access and significant security breaches . To mitigate these risks, organizations can enforce password complexity requirements, utilize two-factor authentication, implement account lockout policies, provide password strength indicators, and ensure secure password storage with encryption . These measures help to prevent unauthorized access and enhance overall system security.

A business logic vulnerability arises due to improper or incorrect implementation of business logic in an application, affecting how the application behaves in response to certain user inputs or business rules . This is not related to the technical flaws but rather how business rules are implemented, leading to potential security issues such as unauthorized actions by users, data manipulation, or financial fraud . The impact could involve pre-account takeover if user creation processes lack proper validation .

Weak password defenses allow attackers to exploit vulnerabilities using techniques such as dictionary attacks, which test commonly used passwords, and brute-force attacks, trying all possible combinations of characters to guess passwords . These attacks are typically automated, magnifying their threat. Enhancing password security involves implementing complexity requirements, such as mandating a mix of uppercase, lowercase, numbers, and symbols; using two-factor authentication to add an extra security layer; implementing account lockout policies; and ensuring that passwords are stored securely using encryption . These measures collectively reduce the risk of unauthorized access caused by password compromises.

Hi !
I found a lot of vulnerabilities on your website 
:-https://www.demoblaze.com/
1.1 :- VULNERBILITY NAME :-  BUSINESS LOG
Attackers can use various techniques to crack weak 
passwords, such as dictionary attacks, brute-force attacks, 
and social e
(After Login )
IMPACT
 
  :- Guesses any one your passwor
Two-Factor Authentication (2FA): Two-factor 
authentication can provide an additional layer of 
security by requiring users
STEP TO REPROCUDE
 
  :- 
Go to https://www.demoblaze.com/index.html (https://www.demoblaze.com/index.html)
Click on login
allow an attacker to gain unauthorized access to 
systems, applications, or data.
Account Lockout: In some cases, a system m
identify and address vulnerabilities, including 
username enumeration.
2 :- VULNERBILITY NAME :-  CORS(Cross-origin resource
IMPACT
 
  :-
Information Disclosure: An attacker can use a CORS 
vulnerability to access sensitive information from a we
Account Takeover: If an attacker is able to steal 
authentication tokens or session cookies, they can use 
them to gain acce
prototype of an object, leading to unexpected behavior or even a 
security breach and it’s CVE number – 2019-11358
SEVERITY

You might also like