Exploit databaseDownload repository ZIP
GH-4188bf5c002a5c31cc222cb0978cb69c
joshuaprovoste/0-click-rce-exploit-for-cve-2024-10924
Sources for CVE-2024-10924
16 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files11
joshuaprovoste/0-click-rce-exploit-for-cve-2024-10924Revision 1a89bfdce5e3
- ↑..Parent directory
- Flag/
- AddUrlRef.js
- Error.js
- ErrorBoundary.js
- Hyperlink.js
- Icon.js
- api.js
- formatting.js
- getAnchor.js
- lib.js
- sleeper.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
plugin/9.1.1.1/settings/src/utils/ErrorBoundary.js
JavaScript · 1,258 bytesimport { Component } from '@wordpress/element';
import PropTypes from 'prop-types';
class ErrorBoundary extends Component {
constructor(props) {
super(props);
this.state = { hasError: false, error: null, errorInfo: null };
this.resetError = this.resetError.bind(this);
}
static getDerivedStateFromError(error) {
return { hasError: true };
}
componentDidCatch(error, errorInfo) {
this.setState({ error, errorInfo });
// You can also log the error to an error reporting service
console.log('ErrorBoundary', error, errorInfo);
}
resetError() {
this.setState({ hasError: false, error: null, errorInfo: null });
}
render() {
if (this.state.hasError) {
return (
<div>
<h1>Something went wrong.</h1>
{/* You can render any custom fallback UI */}
<p>{this.props.fallback}</p>
<button onClick={this.resetError}>Try Again</button>
</div>
);
}
return this.props.children;
}
}
ErrorBoundary.propTypes = {
children: PropTypes.node,
fallback: PropTypes.node,
};
export default ErrorBoundary;