Taint vulnerabilities - Visual Studio (2024)

Taint vulnerabilities are a type ofsecurity-related rules, that can be raised by both SonarCloud and SonarQube (starting with Developer Edition).

Due to technical limitations, SonarLint can not raise taint issues on local analysis and instead pulls taint issues from SonarQube or SonarCloud following a project analysis. Because SonarLint must pull taint vulnerability issues from SonarQube or SonarCloud, the use of Connected Mode is required.

Prerequisites

  • SonarLint version 4.31 or higher.
  • The correct solution must be open in Visual Studio and it must be inConnected Modeto SonarCloud or SonarQube version 8.9 or higher.

How to display taint vulnerabilities

When a solution running in Connected Mode is open in Visual Studio, SonarLint will fetch the vulnerabilities from the configured server. If any vulnerabilities exist, The SonarLint Taint Vulnerabilities tool window will be displayed in a new tab next to the Error List:

Taint vulnerabilities - Visual Studio (1)

Taint vulnerabilities - Visual Studio (2)

The tool window will appear automatically if your server has any taint vulnerabilities in your project. If you are not in Connected Mode, or if your server has no taint vulnerabilities, the window will not appear.

When viewing a taint vulnerability on the SonarQube or SonarCloud server, it's possible to useOpen in IDE button to jump to the issue in SonarLint for Visual Studio. See the Opening issues in the IDE article for full details.

Taint Vulnerabilities list

The taint list is filtered to display remote vulnerabilities found in the currently open code file. When a file containing issues is opened, the caption of the tool window will update to reflect the number of remote vulnerabilities found in the file:

Taint vulnerabilities - Visual Studio (3)

Taint vulnerabilities - Visual Studio (4)

Taint vulnerabilities - Visual Studio (5)

Taint vulnerabilities - Visual Studio (6)

The header of the list will display information about the analysis in which these issues were found:

Currently SonarLint does not detect Taint Vulnerabilities during live analysis in the IDE. The issues appearing in the Taint Vulnerabilities list are the issues reported on your SonarQube or SonarCloud server.

Investigating Taint Vulnerabilities

You can investigate a vulnerability by using a double-click or the Enter key. This will take you to the relevant code location and open theSonarLint Issue Visualizationpanel with a visualization of your code flow.

Taint vulnerabilities - Visual Studio (9)

Taint vulnerabilities - Visual Studio (10)

If you do not see the Issue Visualization panel, click on Extensions > SonarLint > SonarLint Issue Visualization. See the documentation on Investigating issuesfor more information.

Non-navigable code locations

Since taint vulnerabilities are fetched from your configured server, it is possible that the code on your server does not match your local code version, e.g. if code changes have been made since the last analysis. In this case, non-navigable locations will be displayed with an indication that they are not navigable:

Taint vulnerabilities - Visual Studio (11)

Taint vulnerabilities - Visual Studio (12)

Manually re-opening SonarLint Taint Vulnerabilities tool window

If you manually close the tool window, it will no longer appear and disappear automatically when a solution is opened. You can show the window again by clicking on Extensions > SonarLint > Connected Mode > View Taint Vulnerabilities.

Taint vulnerabilities - Visual Studio (13)

Taint vulnerabilities - Visual Studio (14)

How to fix your taint issues

Taint vulnerabilities are security-related rule issues that are only raised by SonarQube (starting with Developer Edition) and SonarCloud. Due to technical limitations, SonarLint can not raise such issues on local analysis.

Because the detection of taint issues requires that you are run in Connected Mode, any changes you make to the code must be resolved by your SonarQube or SonarCloud instance. Here are two options to resolve taint issues displayed by SonarLint:

  • If you fix the issue locally, commit your code to the server and rerun the analysis on SonarQube or SonarCloud. The new status (of the issue) will show up automatically in your local analysis.
  • If you go to the issue in SonarQube or SonarCloud and mark it asfixed, false positive,orwon’t fix, in less than 1 minute, the new status will be updated locally.

When running in Connected Mode with SonarQube 10.4 or newer, Won’t Fix becomes Accept.

Taint vulnerabilities - Visual Studio (2024)
Top Articles
16-year-old college student and mom are both in school, take every single class together
8 Free Budget Planner Templates to Manage Your Marketing Spend!
Cpmc Mission Bernal Campus & Orthopedic Institute Photos
Asist Liberty
Washu Parking
Satyaprem Ki Katha review: Kartik Aaryan, Kiara Advani shine in this pure love story on a sensitive subject
Restaurer Triple Vitrage
The Daily News Leader from Staunton, Virginia
PRISMA Technik 7-10 Baden-Württemberg
Devourer Of Gods Resprite
Encore Atlanta Cheer Competition
Ncaaf Reference
Lost Pizza Nutrition
Ave Bradley, Global SVP of design and creative director at Kimpton Hotels & Restaurants | Hospitality Interiors
Ladyva Is She Married
Mission Impossible 7 Showtimes Near Regal Bridgeport Village
Craigslist Pets Longview Tx
Kris Carolla Obituary
Hilo Hi Craigslist
Sni 35 Wiring Diagram
Ukc Message Board
Culver's Flavor Of The Day Taylor Dr
Babbychula
Azur Lane High Efficiency Combat Logistics Plan
Jeffers Funeral Home Obituaries Greeneville Tennessee
Sec Baseball Tournament Score
Papa Johns Mear Me
Claio Rotisserie Menu
Yale College Confidential 2027
Truck from Finland, used truck for sale from Finland
Pokemon Inflamed Red Cheats
CohhCarnage - Twitch Streamer Profile & Bio - TopTwitchStreamers
Guinness World Record For Longest Imessage
Marlene2295
Missing 2023 Showtimes Near Grand Theatres - Bismarck
Hotel Denizen Mckinney
Housing Assistance Rental Assistance Program RAP
How to Get Into UCLA: Admissions Stats + Tips
Midsouthshooters Supply
Craigslist Mexicali Cars And Trucks - By Owner
F9 2385
Simnet Jwu
Brandon Spikes Career Earnings
Tinfoil Unable To Start Software 2022
Beds From Rent-A-Center
Displacer Cub – 5th Edition SRD
Windy Bee Favor
Marine Forecast Sandy Hook To Manasquan Inlet
What your eye doctor knows about your health
Scholar Dollar Nmsu
Gainswave Review Forum
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 6748

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.