CVE-2022-31154 Indirect Object Access in Sourcegraph Code Monitoring
Authenticated users can modify code monitors owned by others, allowing unauthorized changes to triggers and actions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-31154?
CVE-2022-31154 is a medium-severity missing authorization vulnerability in sourcegraph, published on 1 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Sourcegraph is an opensource code search and navigation engine. It is possible for an authenticated Sourcegraph user to edit the Code Monitors owned by any other Sourcegraph user. This includes being able to edit both the trigger and the action of the monitor in question. An attacker is not able to read contents of existing code monitors, only override the data. The issue is fixed in Sourcegraph 3.42. There are no workaround for the issue and patching is highly recommended.
Weakness: CWE-863
Which versions are affected by CVE-2022-31154?
It affects 1 product.
Products include Sourcegraph Sourcegraph.
How do I fix CVE-2022-31154?
No fix has been published for CVE-2022-31154 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2022-31154 being exploited?
There is no known exploitation of CVE-2022-31154 in the wild and no public exploit code.